Commit 5339ff27 by zhangleyuan

feat:处理店铺员工不存在的问题

parent fab31a41
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-04-27 20:35:34 * @Date: 2020-04-27 20:35:34
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-22 11:43:51 * @LastEditTime: 2021-06-22 17:47:20
* @Description: * @Description:
*/ */
...@@ -24,11 +24,7 @@ import Service from "@/common/js/service"; ...@@ -24,11 +24,7 @@ import Service from "@/common/js/service";
declare var getParameterByName: any; declare var getParameterByName: any;
declare var window: any; declare var window: any;
if(!window.currentStoreUserInfo){ window.currentStoreUserInfo = {}
console.log('我走进了此流程')
window.currentStoreUserInfo = {}
}
const history = createHashHistory(); const history = createHashHistory();
window.RCHistory = _.extend({}, history, { window.RCHistory = _.extend({}, history, {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2019-07-10 10:30:49 * @Date: 2019-07-10 10:30:49
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-22 10:58:48 * @LastEditTime: 2021-06-22 17:47:02
* @Description: * @Description:
*/ */
import React, { useContext, useEffect, useState } from 'react'; import React, { useContext, useEffect, useState } from 'react';
...@@ -86,9 +86,9 @@ const App: React.FC = (props: any) => { ...@@ -86,9 +86,9 @@ const App: React.FC = (props: any) => {
function setCurrentStoreUserInfo(storeId:any,storeUserId:any){ function setCurrentStoreUserInfo(storeId:any,storeUserId:any){
window.currentStoreUserInfo.storeId = storeId; window.currentStoreUserInfo.storeId = storeId;
window.currentStoreUserInfo.storeUserId = storeUserId; window.currentStoreUserInfo.storeUserId = storeUserId;
// window.currentStoreUserInfo.userId = User.getUserId(); window.currentStoreUserInfo.userId = User.getUserId();
// window.currentStoreUserInfo.token = User.getToken(); window.currentStoreUserInfo.token = User.getToken();
// window.currentStoreUserInfo.enterpriseId = User.getEnterpriseId(); window.currentStoreUserInfo.enterpriseId = User.getEnterpriseId();
} }
function getStoreGroupAndStoreList() { function getStoreGroupAndStoreList() {
......
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