Commit dea88155 authored by 邓晓峰's avatar 邓晓峰

fix: 数据权限问题

parent 7fde2355
Pipeline #40672 passed with stages
in 4 minutes 33 seconds
...@@ -71,7 +71,10 @@ export const initGlobalConfig = (loader, store, render) => { ...@@ -71,7 +71,10 @@ export const initGlobalConfig = (loader, store, render) => {
// Cookies.set('city', data.client); // Cookies.set('city', data.client);
store.dispatch( store.dispatch(
actionCreators.getConfig( actionCreators.getConfig(
Object.assign({}, data), Object.assign({}, data, {
token: '',
access_token: '',
}),
), ),
); );
...@@ -89,8 +92,7 @@ export const initGlobalConfig = (loader, store, render) => { ...@@ -89,8 +92,7 @@ export const initGlobalConfig = (loader, store, render) => {
token: getToken(), token: getToken(),
}), }),
// eslint-disable-next-line no-shadow // eslint-disable-next-line no-shadow
updateConfig: data => updateConfig: data =>store.dispatch(actionCreators.getConfig(data)),
store.dispatch(actionCreators.getConfig(data)),
isInit: false, isInit: false,
logout: () => store.dispatch(actionCreators.logout()), logout: () => store.dispatch(actionCreators.logout()),
}, },
......
...@@ -745,7 +745,7 @@ class Login { ...@@ -745,7 +745,7 @@ class Login {
); );
if(response.hasOwnProperty('data')) { if(response.hasOwnProperty('data')) {
self.globalConfig.userInfo = { self.globalConfig.userInfo = {
... self.globalConfig.userInfo, // ... self.globalConfig.userInfo,
...response.data ...response.data
} }
} }
......
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