chenrui 3 lat temu
rodzic
commit
5114bc403a
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/store/modules/user.js

+ 1 - 0
src/store/modules/user.js

@@ -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) {