user session quest

This commit is contained in:
smallwei 2019-02-16 08:29:36 +08:00
parent 69c68eec16
commit 5721988201

View File

@ -45,7 +45,6 @@ const user = {
commit('SET_USERIFNO', data);
commit('DEL_ALL_TAG');
commit('CLEAR_LOCK');
dispatch('GetButtons');
resolve();
})
})
@ -140,6 +139,7 @@ const user = {
addPath(ele, true);
})
commit('SET_MENU', menu)
dispatch('GetButtons');
resolve(menu)
})
})
@ -153,7 +153,7 @@ const user = {
},
SET_USERIFNO: (state, userInfo) => {
state.userInfo = userInfo;
setStore({ name: 'userInfo', content: state.userInfo, type: 'session' })
setStore({ name: 'userInfo', content: state.userInfo })
},
SET_MENU: (state, menu) => {
state.menu = menu