From 828f8931be0a187bf7a23a37315df8e070d31f4b Mon Sep 17 00:00:00 2001 From: advent259141 <2968474907@qq.com> Date: Fri, 9 Jan 2026 21:41:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20=E4=BF=AE=E5=A4=8D=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2=E7=BF=BB=E8=AF=91=E9=94=AE=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E5=92=8C=E6=8F=92=E4=BB=B6=E6=8E=92=E5=BA=8F=E7=A9=BA?= =?UTF-8?q?=E5=80=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/components/shared/PluginSetSelector.vue | 6 +++++- .../src/i18n/locales/en-US/features/config-metadata.json | 8 ++++++++ .../src/i18n/locales/zh-CN/features/config-metadata.json | 8 ++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/dashboard/src/components/shared/PluginSetSelector.vue b/dashboard/src/components/shared/PluginSetSelector.vue index 8aa51eaf7..78d1b53c3 100644 --- a/dashboard/src/components/shared/PluginSetSelector.vue +++ b/dashboard/src/components/shared/PluginSetSelector.vue @@ -170,7 +170,11 @@ async function loadPlugins() { // 只显示已激活且非系统的插件,并按名称排序 pluginList.value = (response.data.data || []) .filter(plugin => plugin.activated && !plugin.reserved) - .sort((a, b) => a.name.localeCompare(b.name)) + .sort((a, b) => { + const nameA = a.name || ''; + const nameB = b.name || ''; + return nameA.localeCompare(nameB); + }) } } catch (error) { console.error('加载插件列表失败:', error) diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index e0f694c33..c9a8c3468 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -523,5 +523,13 @@ "description": "Direct Connection Address List" } } + }, + "help": { + "documentation": "Official Documentation", + "support": "Join Support Group", + "helpText": "Don't understand the configuration? See {documentation} or {support}.", + "helpPrefix": "Don't understand the configuration? See", + "helpMiddle": "or", + "helpSuffix": "." } } \ No newline at end of file diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index 589aa54a0..7981347ff 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -521,5 +521,13 @@ "description": "直连地址列表" } } + }, + "help": { + "documentation": "官方文档", + "support": "加群询问", + "helpText": "不了解配置?请见 {documentation} 或 {support}。", + "helpPrefix": "不了解配置?请见", + "helpMiddle": "或", + "helpSuffix": "。" } } \ No newline at end of file