From 02f2354ee7859bd2af8f57b73cb40ce8ca6469be Mon Sep 17 00:00:00 2001 From: dataprince Date: Wed, 15 Nov 2023 11:44:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E6=A8=A1=E5=9D=97=E5=89=8D=E5=8F=B0=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/system/user/profile/index.vue | 12 ++++++++---- ruoyi-ui/src/views/system/user/profile/userInfo.vue | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/system/user/profile/index.vue b/ruoyi-ui/src/views/system/user/profile/index.vue index ac5961d..d52fddb 100644 --- a/ruoyi-ui/src/views/system/user/profile/index.vue +++ b/ruoyi-ui/src/views/system/user/profile/index.vue @@ -27,7 +27,11 @@
  • 所属部门 -
    {{ state.user.dept.deptName }} / {{ state.postGroup }}
    +
    {{ state.user.dept.deptName }}
    +
  • +
  • + 所属岗位 +
    {{ state.postGroup }}
  • 所属角色 @@ -77,9 +81,9 @@ const state = reactive({ function getUser() { getUserProfile().then(response => { - state.user = response.data; - state.roleGroup = response.roleGroup; - state.postGroup = response.postGroup; + state.user = response.data.user; + state.roleGroup = response.data.roleGroup; + state.postGroup = response.data.postGroup; }); }; diff --git a/ruoyi-ui/src/views/system/user/profile/userInfo.vue b/ruoyi-ui/src/views/system/user/profile/userInfo.vue index 06d1433..4df5d6c 100644 --- a/ruoyi-ui/src/views/system/user/profile/userInfo.vue +++ b/ruoyi-ui/src/views/system/user/profile/userInfo.vue @@ -10,7 +10,7 @@ - +