From 5721988201c5f3b82015c285b8f5ca4c5e512c2c Mon Sep 17 00:00:00 2001 From: smallwei <1634566606@qq.com> Date: Sat, 16 Feb 2019 08:29:36 +0800 Subject: [PATCH] user session quest --- src/store/modules/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index f7aec9e..50fb707 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -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