mirror of https://github.com/jeecgboot/jeecg-boot
【#3232】JS增强中获取用户名为空
parent
b6219301e1
commit
84f3ce8340
|
@ -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},
|
||||||
|
|
Loading…
Reference in New Issue