diff --git a/framework/sdk-parent/frontend/src/api/user.js b/framework/sdk-parent/frontend/src/api/user.js index 627cc269ef..80b05b70c6 100644 --- a/framework/sdk-parent/frontend/src/api/user.js +++ b/framework/sdk-parent/frontend/src/api/user.js @@ -73,8 +73,8 @@ export function checkLdapOpen() { return get('/ldap/open') } -export function getUserInfo(userId) { - return get(`/user/info/${userId}`); +export function getUserInfo() { + return get(`/user/info`); } export function getWsAndPj(userId) { diff --git a/framework/sdk-parent/frontend/src/components/personal/PersonRouter.vue b/framework/sdk-parent/frontend/src/components/personal/PersonRouter.vue index 2ea5245f9b..0eacf972a7 100644 --- a/framework/sdk-parent/frontend/src/components/personal/PersonRouter.vue +++ b/framework/sdk-parent/frontend/src/components/personal/PersonRouter.vue @@ -184,7 +184,7 @@ export default { .then((r) => { this.platformAccountConfigs = r.data; }); - this.result = getUserInfo(encodeURIComponent(this.currentUser().id)) + this.result = getUserInfo() .then(response => { let data = response.data; this.isLocalUser = response.data.source === 'LOCAL'; diff --git a/framework/sdk-parent/frontend/src/components/personal/UiSetting.vue b/framework/sdk-parent/frontend/src/components/personal/UiSetting.vue index dbdfab91b8..a59b861ea4 100644 --- a/framework/sdk-parent/frontend/src/components/personal/UiSetting.vue +++ b/framework/sdk-parent/frontend/src/components/personal/UiSetting.vue @@ -30,7 +30,6 @@