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 @@
-
@@ -34,21 +34,15 @@
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())
@@ -355,7 +355,7 @@ onMounted(() => getMessage())