mirror of
https://github.com/chillzhuang/Saber.git
synced 2024-11-05 10:09:40 +08:00
user session quest
This commit is contained in:
parent
69c68eec16
commit
5721988201
@ -45,7 +45,6 @@ const user = {
|
|||||||
commit('SET_USERIFNO', data);
|
commit('SET_USERIFNO', data);
|
||||||
commit('DEL_ALL_TAG');
|
commit('DEL_ALL_TAG');
|
||||||
commit('CLEAR_LOCK');
|
commit('CLEAR_LOCK');
|
||||||
dispatch('GetButtons');
|
|
||||||
resolve();
|
resolve();
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -140,6 +139,7 @@ const user = {
|
|||||||
addPath(ele, true);
|
addPath(ele, true);
|
||||||
})
|
})
|
||||||
commit('SET_MENU', menu)
|
commit('SET_MENU', menu)
|
||||||
|
dispatch('GetButtons');
|
||||||
resolve(menu)
|
resolve(menu)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -153,7 +153,7 @@ const user = {
|
|||||||
},
|
},
|
||||||
SET_USERIFNO: (state, userInfo) => {
|
SET_USERIFNO: (state, userInfo) => {
|
||||||
state.userInfo = userInfo;
|
state.userInfo = userInfo;
|
||||||
setStore({ name: 'userInfo', content: state.userInfo, type: 'session' })
|
setStore({ name: 'userInfo', content: state.userInfo })
|
||||||
},
|
},
|
||||||
SET_MENU: (state, menu) => {
|
SET_MENU: (state, menu) => {
|
||||||
state.menu = menu
|
state.menu = menu
|
||||||
|
Loading…
Reference in New Issue
Block a user