|
@@ -64,6 +64,7 @@ const user = {
|
|
|
commit('SET_NAME', { name: users.userNameCN, welcome: welcome() })
|
|
|
commit('SET_MUSTCHANGEPWD', users.mustChangePwd)
|
|
|
Vue.ls.set('rolesAccess', { permissionList: users.permCodes }, 7 * 24 * 60 * 60 * 1000)
|
|
|
+ commit('SET_ROLES', Vue.ls.get('rolesAccess'))
|
|
|
commit('SET_AVATAR', res.avatar ? res.avatar : '')
|
|
|
// 记住密码
|
|
|
if (userInfo.rememberMe) {
|