Commit fbd1ada9 by zhangleyuan

feat:处理退出登录跳转

parent a2c035a5
......@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-04-13 18:51:18
* @LastEditTime: 2021-04-14 19:29:09
* @Description:
*/
import React, { useContext, useEffect, useState } from "react";
......@@ -27,7 +27,7 @@ function Header(props) {
const [nickName, setNickName] = useState('');
const [phone, setPhone] = useState('');
const ctx = useContext(XMContext);
const htmlUrl = `${LIVE_SHARE}store/index?id=${User.getCustomerStoreId()||User.getStoreId()}&userId=${User.getUserId()}&from=work_weixin`;
const htmlUrl = `${LIVE_SHARE}store/index?id=${User.getStoreId()}&userId=${User.getUserId()}&from=work_weixin`;
const storeUserId = User.getStoreUserId();
const enterpriseId = User.getEnterpriseId();
......@@ -141,7 +141,8 @@ function Header(props) {
User.removeToken();
User.removeEnterpriseId();
User.clearUserInfo();
window.location.href = htmlUrl;
const url = `${LIVE_SHARE}store/index?id=${User.getCustomerStoreId()||User.getStoreId()}&userId=${User.getUserId()}&from=work_weixin`;
window.location.href = url;
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment