From b1b031077c381d8690504bea019fc8e94cc4397d Mon Sep 17 00:00:00 2001 From: Ocetars Date: Wed, 3 Dec 2025 19:48:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor(command):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E6=95=B0=E5=B1=95=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/i18n/locales/en-US/features/command.json | 2 +- dashboard/src/i18n/locales/zh-CN/features/command.json | 2 +- dashboard/src/views/CommandPage.vue | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/features/command.json b/dashboard/src/i18n/locales/en-US/features/command.json index a8b249e0f..63cbaae2e 100644 --- a/dashboard/src/i18n/locales/en-US/features/command.json +++ b/dashboard/src/i18n/locales/en-US/features/command.json @@ -1,7 +1,7 @@ { "title": "Command Management", "summary": { - "total": "Total Commands", + "total": "Displayed commands", "disabled": "Disabled", "conflicts": "Conflicts" }, diff --git a/dashboard/src/i18n/locales/zh-CN/features/command.json b/dashboard/src/i18n/locales/zh-CN/features/command.json index 5eecb9d87..6f9497335 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/command.json +++ b/dashboard/src/i18n/locales/zh-CN/features/command.json @@ -1,7 +1,7 @@ { "title": "指令管理", "summary": { - "total": "总指令数", + "total": "展示的指令数", "disabled": "已禁用", "conflicts": "有冲突" }, diff --git a/dashboard/src/views/CommandPage.vue b/dashboard/src/views/CommandPage.vue index 8d28e0d37..76efebfa8 100644 --- a/dashboard/src/views/CommandPage.vue +++ b/dashboard/src/views/CommandPage.vue @@ -26,7 +26,6 @@ interface CommandItem { } interface CommandSummary { - total: number; disabled: number; conflicts: number; } @@ -37,7 +36,6 @@ const { tm } = useModuleI18n('features/command'); const loading = ref(false); const commands = ref([]); const summary = reactive({ - total: 0, disabled: 0, conflicts: 0 }); @@ -243,7 +241,6 @@ const fetchCommands = async () => { if (res.data.status === 'ok') { commands.value = res.data.data.items || []; const s = res.data.data.summary || {}; - summary.total = s.total || 0; summary.disabled = s.disabled || 0; summary.conflicts = s.conflicts || 0; } else { @@ -439,7 +436,7 @@ onMounted(async () => {
mdi-console-line {{ tm('summary.total') }}: - {{ summary.total }} + {{ filteredCommands.length }}