fix(desktop): 🐛 修复设置菜单的翻译问题
This commit is contained in:
@@ -12,16 +12,16 @@ const { t } = useI18n()
|
||||
// --- 状态管理 ---
|
||||
const activeMenu = ref('model')
|
||||
const activeMenuItem = computed(() => {
|
||||
return menuItems.find((item) => item.key === activeMenu.value)?.component
|
||||
return menuItems.value.find((item) => item.key === activeMenu.value)?.component
|
||||
})
|
||||
|
||||
const menuItems = [
|
||||
const menuItems = computed(() => [
|
||||
{ key: 'model', name: t('setting.menu.model'), icon: SettingConfig, component: ModelSetting },
|
||||
{ key: 'account', name: t('setting.menu.account'), icon: ShieldAdd },
|
||||
{ key: 'billing', name: t('setting.menu.billing'), icon: Wallet },
|
||||
{ key: 'notification', name: t('setting.menu.notification'), icon: Remind, component: NotificationSetting },
|
||||
{ key: 'language', name: t('setting.menu.language'), icon: Translate, component: LanguageSetting }
|
||||
]
|
||||
])
|
||||
onMounted(() => {})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user