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 @@ - +