Commit 049a2788 by zhangleyuan

feat:解决合并代码后的冲突

parents 9174d353 d80b7351
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-31 09:34:25 * @Date: 2020-08-31 09:34:25
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-23 10:22:51 * @LastEditTime: 2021-06-23 16:14:11
* @Description: * @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -17,7 +17,7 @@ class User { ...@@ -17,7 +17,7 @@ class User {
} }
getStoreId(){ getStoreId(){
return Storage.get(`${PREFIX}_storeId`) return window.currentStoreUserInfo.storeId || Storage.get(`${PREFIX}_storeId`)
} }
getEnterpriseId() { getEnterpriseId() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2019-09-10 18:26:03 * @Date: 2019-09-10 18:26:03
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-23 15:09:26 * @LastEditTime: 2021-06-23 16:11:49
* @Description: * @Description:
*/ */
import React, { useRef, useContext, useEffect, useState } from 'react'; import React, { useRef, useContext, useEffect, useState } from 'react';
...@@ -276,9 +276,9 @@ function Header(props) { ...@@ -276,9 +276,9 @@ function Header(props) {
User.setStoreUserId(item.storeUserId); User.setStoreUserId(item.storeUserId);
} }
}) })
User.setUserId(window.currentStoreUserInfo.userId); User.setUserId(User.getUserId());
User.setToken(window.currentStoreUserInfo.token); User.setToken(User.getToken());
User.setEnterpriseId(window.currentStoreUserInfo.enterpriseId) User.setEnterpriseId(User.getEnterpriseId())
window.RCHistory.push('/home'); window.RCHistory.push('/home');
window.location.reload(); window.location.reload();
}} }}
......
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