From f968197bf817e4363406f077e2b96aa06c5e8d19 Mon Sep 17 00:00:00 2001 From: lihui Date: Fri, 28 Nov 2025 13:40:00 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=9B=BE=E6=A0=87=20=E4=BD=BF=E7=94=A8i?= =?UTF-8?q?d=20=E5=88=87=E6=8D=A2=E8=AF=AD=E8=A8=80=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialogs/LanguageSwitch.vue | 94 +++++++++++++++++++------------ src/views/home.vue | 22 ++++---- 2 files changed, 70 insertions(+), 46 deletions(-) diff --git a/src/components/dialogs/LanguageSwitch.vue b/src/components/dialogs/LanguageSwitch.vue index 264ab5e..a27c490 100644 --- a/src/components/dialogs/LanguageSwitch.vue +++ b/src/components/dialogs/LanguageSwitch.vue @@ -1,24 +1,24 @@ diff --git a/src/views/home.vue b/src/views/home.vue index 5a88870..91fa2d6 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -22,17 +22,17 @@ import {useMessageStore} from '@/store/index.js' const icons = import.meta.glob('@/assets/SvgIcons/*.svg', {eager: true}) const menuNameMap = { - '工作台': 'workbench', - '金币管理': 'gold-management', - '现金管理': 'cash-management', - '活动管理': 'activity-management', - '频道管理': 'channel-management', - '权限管理': 'permission-management', - '多语言配置': 'mutiple-language', + '2': 'workbench', // 工作台 + '3': 'gold-management', //金币管理 + '58': 'cash-management', //现金管理 + '119': 'activity-management', //活动管理 + '124': 'channel-management', //频道管理 + '128': 'permission-management', //权限管理 + '146': 'mutiple-language', //多语言配置 } -const getIconPath = (menuName) => { - const englishName = menuNameMap[menuName] || menuName; +const getIconPath = (menuNameId) => { + const englishName = menuNameMap[menuNameId] || menuNameId; const possibleKeys = [ `@/assets/SvgIcons/${englishName}.svg`, @@ -314,7 +314,7 @@ onMounted(() => getMessage())