From 1b417549d61ca7f540bac0ca2f3ec193c8662462 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Mon, 30 Jan 2023 13:39:21 +0800 Subject: [PATCH] perf: user profile --- src/views/profile/ProfileInfo.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/profile/ProfileInfo.vue b/src/views/profile/ProfileInfo.vue index 0485288bc..b1d060858 100644 --- a/src/views/profile/ProfileInfo.vue +++ b/src/views/profile/ProfileInfo.vue @@ -228,11 +228,11 @@ export default { key: this.$t('users.Name') }, { - value: this.object.system_roles_display, + value: this.object.system_roles.map(item => item.display_name).join(' | '), key: this.$t('users.SystemRoles') }, { - value: this.object.org_roles_display, + value: this.object.org_roles.map(item => item.display_name).join(' | '), key: this.$t('users.OrgRoles') }, { @@ -253,11 +253,11 @@ export default { } }, { - value: this.object.mfa_level_display, + value: this.object.mfa_level.label, key: this.$t('users.MfaLevel') }, { - value: this.object.source_display, + value: this.object.source.label, key: this.$t('users.Source') }, { @@ -277,7 +277,7 @@ export default { key: this.$t('users.DateExpired') }, { - value: this.object.groups_display, + value: this.object.workbench_orgs.filter(item => !item.is_root).map(item => item.name).join(' | '), key: this.$t('users.UserGroups') }, {