From 79d397297d691ca0784bc0180c86e74f1d1f2d36 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sat, 16 May 2026 04:23:43 +0800 Subject: [PATCH] refactor(UserMenu): streamline template structure and improve readability Refactored the UserMenu.vue component by consolidating template elements and removing unnecessary line breaks. This change enhances the overall readability of the code while maintaining the existing functionality of the user menu. No functional changes were made; the focus was solely on code clarity. Refs: #1303 --- frontend/src/components/UserMenu.vue | 199 ++++++++++----------------- 1 file changed, 69 insertions(+), 130 deletions(-) diff --git a/frontend/src/components/UserMenu.vue b/frontend/src/components/UserMenu.vue index 0fdebff1..05f4ea0d 100644 --- a/frontend/src/components/UserMenu.vue +++ b/frontend/src/components/UserMenu.vue @@ -21,16 +21,9 @@
{{ activeTenantName }}
{{ userName }} - · - + · + {{ currentRoleLabel }}
@@ -53,35 +46,20 @@ 这里 dropdown 只需要让用户「秒识别这是切租户入口」即可。 home / 当前 徽标已经在切租户子菜单里 per-row 标注了, 顶部入口本身不需要再多一份指示。 --> - @@ -119,21 +93,12 @@ {{ $t('settings.apiInfo') }} - -