From 28161d139479d1f88fbdc5fa76ce7b543b926133 Mon Sep 17 00:00:00 2001 From: "SERVERM-0FVHDNN\\Administrator" <942005050@qq.com> Date: Thu, 30 Mar 2023 10:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=99=BB=E5=BD=95=E4=BA=BA=E4=BF=A1=E6=81=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/src/api/wms-auth.js | 4 ++-- fe/PC/src/views/profileuser/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fe/PC/src/api/wms-auth.js b/fe/PC/src/api/wms-auth.js index fb00d9258..e93410557 100644 --- a/fe/PC/src/api/wms-auth.js +++ b/fe/PC/src/api/wms-auth.js @@ -179,9 +179,9 @@ export function SetUserWorkgroupPermissions(data,id) { }) } //加载用户登录信息 -export function loadLoginUserInfo() { +export function loadLoginUserInfo(id) { return request({ - url: baseURL + '/identity/my-profile', + url: baseURL + '/identity/users/' + id, method: 'get' }) } diff --git a/fe/PC/src/views/profileuser/index.vue b/fe/PC/src/views/profileuser/index.vue index 7217453c7..2a4893e06 100644 --- a/fe/PC/src/views/profileuser/index.vue +++ b/fe/PC/src/views/profileuser/index.vue @@ -96,7 +96,7 @@ export default { }, methods: { getUser() { - loadLoginUserInfo().then((response) => { + loadLoginUserInfo(this.$store.getters.name.id).then((response) => { this.user = response; }); },