From a038969526741baccec5f876c35dd4546c67232a Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Fri, 8 May 2026 17:52:16 +0800 Subject: [PATCH] :bug: Fix(custom): fix i18n issue in cloud page --- currentVersion.md | 1 + currentVersion_en.md | 1 + src/renderer/manage/pages/LogInPage.vue | 5 +- src/renderer/manage/pages/ManageEditPage.vue | 34 +- src/renderer/manage/pages/ManageMain.vue | 3 +- src/renderer/manage/utils/constants.ts | 2098 +++++++++--------- src/universal/types/types.d.ts | 1 - 7 files changed, 1071 insertions(+), 1072 deletions(-) diff --git a/currentVersion.md b/currentVersion.md index 50a2bfae..24df60c7 100644 --- a/currentVersion.md +++ b/currentVersion.md @@ -17,6 +17,7 @@ ### 🐛 问题修复 +- 修复了云端页面部分文字没有跟随语言设置进行改变的问题 - 修复了单图床重命名设置项在更新时,配置文件设置的值未正确更新的问题 - 修复了某些情况下重命名未生效的问题 - 修复了部分情况下,忽略软件更新选项未正确保存的问题 diff --git a/currentVersion_en.md b/currentVersion_en.md index a75b2360..25e0898c 100644 --- a/currentVersion_en.md +++ b/currentVersion_en.md @@ -17,6 +17,7 @@ ### 🐛 Bug Fixes +- Fixed an issue where some text on the cloud page did not change according to the language settings. - Fixed an issue where the value set in the configuration file for the single image bed renaming setting was not correctly updated during updates. - Fixed an issue where renaming did not take effect in certain cases. - Fixed an issue where the option to ignore software updates was not correctly saved in some cases. diff --git a/src/renderer/manage/pages/LogInPage.vue b/src/renderer/manage/pages/LogInPage.vue index 0e376dae..953a7807 100644 --- a/src/renderer/manage/pages/LogInPage.vue +++ b/src/renderer/manage/pages/LogInPage.vue @@ -281,7 +281,7 @@ import useMessage from '@/hooks/useMessage' import ManageEditPage from '@/manage/pages/ManageEditPage.vue' import { useManageStore } from '@/manage/store/manageStore' import { formObjToTableData } from '@/manage/utils/common' -import { supportedPicBedList } from '@/manage/utils/constants' +import { getSupportedPicBedList } from '@/manage/utils/constants' import { getConfig, removeConfig, saveConfig } from '@/manage/utils/dataSender' import { formatEndpoint } from '@/utils/common' import { configPaths } from '@/utils/configPaths' @@ -289,6 +289,7 @@ import { getConfig as getPicListConfig } from '@/utils/dataSender' import { II18nLanguage, IRPCActionType } from '@/utils/enum' const { t } = useI18n() +const supportedPicBedList = computed(() => getSupportedPicBedList(t)) const manageStore = useManageStore() const router = useRouter() const message = useMessage() @@ -331,7 +332,7 @@ const tabItems = computed(() => { iconComponent: FolderIcon, } - const dynamicItems = Object.values(supportedPicBedList).map((item: any) => ({ + const dynamicItems = Object.values(supportedPicBedList.value).map((item: any) => ({ key: item.icon, name: item.name, icon: item.icon, diff --git a/src/renderer/manage/pages/ManageEditPage.vue b/src/renderer/manage/pages/ManageEditPage.vue index b99d4662..07baa7ee 100644 --- a/src/renderer/manage/pages/ManageEditPage.vue +++ b/src/renderer/manage/pages/ManageEditPage.vue @@ -159,7 +159,7 @@