From 84f3ce8340212ba664c1012857f91c1702e4cf06 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Fri, 10 Dec 2021 12:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90#3232=E3=80=91JS=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E4=B8=AD=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7=E5=90=8D=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/store/getters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ant-design-vue-jeecg/src/store/getters.js b/ant-design-vue-jeecg/src/store/getters.js index a6a1e815..645e1b47 100644 --- a/ant-design-vue-jeecg/src/store/getters.js +++ b/ant-design-vue-jeecg/src/store/getters.js @@ -6,8 +6,8 @@ const getters = { color: state => state.app.color, token: state => state.user.token, avatar: state => {state.user.avatar = Vue.ls.get(USER_INFO).avatar; return state.user.avatar}, - username: state => state.user.username, - nickname: state => {state.user.realname = Vue.ls.get(USER_INFO).realname; return state.user.realname}, + username: state => state.user.info.username, + nickname: state => {state.user.info.realname = Vue.ls.get(USER_INFO).realname; return state.user.info.realname}, welcome: state => state.user.welcome, permissionList: state => state.user.permissionList, userInfo: state => {state.user.info = Vue.ls.get(USER_INFO); return state.user.info},