From eca6748670ed09e9d76a7d1ba1c536ac4a75719f Mon Sep 17 00:00:00 2001 From: qinjie Date: Thu, 9 Sep 2021 18:17:45 +0800 Subject: [PATCH] =?UTF-8?q?getLoginUser=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index b4b014d..b8a358a 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -58,7 +58,7 @@ const user = { const data = response.data commit('SET_ROLES', 1) commit('SET_BUTTONS', data.permissions) - commit('SET_INFO', data) + commit('SET_INFO', data.user) commit('SET_NAME', { name: data.user.userName, welcome: welcome() }) if (data.user.avatar != null) { commit('SET_AVATAR', process.env.VUE_APP_API_BASE_URL + '/sysFileInfo/preview?id=' + data.user.avatar)