【#3232】JS增强中获取用户名为空

pull/3283/head
zhangdaiscott 2021-12-10 12:02:36 +08:00
parent b6219301e1
commit 84f3ce8340
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ const getters = {
color: state => state.app.color, color: state => state.app.color,
token: state => state.user.token, token: state => state.user.token,
avatar: state => {state.user.avatar = Vue.ls.get(USER_INFO).avatar; return state.user.avatar}, avatar: state => {state.user.avatar = Vue.ls.get(USER_INFO).avatar; return state.user.avatar},
username: state => state.user.username, username: state => state.user.info.username,
nickname: state => {state.user.realname = Vue.ls.get(USER_INFO).realname; return state.user.realname}, nickname: state => {state.user.info.realname = Vue.ls.get(USER_INFO).realname; return state.user.info.realname},
welcome: state => state.user.welcome, welcome: state => state.user.welcome,
permissionList: state => state.user.permissionList, permissionList: state => state.user.permissionList,
userInfo: state => {state.user.info = Vue.ls.get(USER_INFO); return state.user.info}, userInfo: state => {state.user.info = Vue.ls.get(USER_INFO); return state.user.info},