From 6b53b554cc465d4ee9a3cf1360adfdd037ffedb5 Mon Sep 17 00:00:00 2001 From: Fridemn <150212937+Fridemn@users.noreply.github.com> Date: Wed, 15 Jul 2026 17:52:43 +0800 Subject: [PATCH] fix(dashboard): remove duplicate platform logs (#9291) --- .../i18n/locales/en-US/features/platform.json | 5 ---- .../i18n/locales/ru-RU/features/platform.json | 5 ---- .../i18n/locales/zh-CN/features/platform.json | 5 ---- dashboard/src/views/PlatformPage.vue | 27 ------------------- 4 files changed, 42 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/features/platform.json b/dashboard/src/i18n/locales/en-US/features/platform.json index 4932a0b18..9faaed029 100644 --- a/dashboard/src/i18n/locales/en-US/features/platform.json +++ b/dashboard/src/i18n/locales/en-US/features/platform.json @@ -17,11 +17,6 @@ "token": "Token", "description": "Description" }, - "logs": { - "title": "Platform Logs", - "expand": "Expand", - "collapse": "Collapse" - }, "dialog": { "add": "Add", "edit": "Edit", diff --git a/dashboard/src/i18n/locales/ru-RU/features/platform.json b/dashboard/src/i18n/locales/ru-RU/features/platform.json index 25ec3e11b..2d841640f 100644 --- a/dashboard/src/i18n/locales/ru-RU/features/platform.json +++ b/dashboard/src/i18n/locales/ru-RU/features/platform.json @@ -17,11 +17,6 @@ "token": "Токен", "description": "Описание" }, - "logs": { - "title": "Логи платформы", - "expand": "Развернуть", - "collapse": "Свернуть" - }, "dialog": { "add": "Добавить", "edit": "Изменить", diff --git a/dashboard/src/i18n/locales/zh-CN/features/platform.json b/dashboard/src/i18n/locales/zh-CN/features/platform.json index 2b64b440d..18eba1032 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/platform.json +++ b/dashboard/src/i18n/locales/zh-CN/features/platform.json @@ -17,11 +17,6 @@ "token": "Token", "description": "描述" }, - "logs": { - "title": "平台日志", - "expand": "展开", - "collapse": "收起" - }, "dialog": { "add": "新增", "edit": "编辑", diff --git a/dashboard/src/views/PlatformPage.vue b/dashboard/src/views/PlatformPage.vue index b671b8ab9..e500c19b2 100644 --- a/dashboard/src/views/PlatformPage.vue +++ b/dashboard/src/views/PlatformPage.vue @@ -91,25 +91,6 @@ - - - - mdi-console-line - {{ tm('logs.title') }} - - - {{ showConsole ? tm('logs.collapse') : tm('logs.expand') }} - {{ showConsole ? 'mdi-chevron-up' : 'mdi-chevron-down' }} - - - - - - - - - - @@ -231,7 +212,6 @@ import { botApi, fileApi, systemConfigApi } from '@/api/v1'; import AstrBotConfig from '@/components/shared/AstrBotConfig.vue'; import WaitingForRestart from '@/components/shared/WaitingForRestart.vue'; -import ConsoleDisplayer from '@/components/shared/ConsoleDisplayer.vue'; import ItemCard from '@/components/shared/ItemCard.vue'; import AddNewPlatform from '@/components/platform/AddNewPlatform.vue'; import QrCodeViewer from '@/components/shared/QrCodeViewer.vue'; @@ -249,7 +229,6 @@ export default { components: { AstrBotConfig, WaitingForRestart, - ConsoleDisplayer, ItemCard, AddNewPlatform, QrCodeViewer, @@ -279,8 +258,6 @@ export default { save_message: "", save_message_success: "success", - showConsole: localStorage.getItem('platformPage_showConsole') === 'true', - showWebhookDialog: false, currentWebhookUuid: '', @@ -299,10 +276,6 @@ export default { }, watch: { - showConsole(newValue) { - localStorage.setItem('platformPage_showConsole', newValue.toString()); - }, - showIdConflictDialog(newValue) { if (!newValue && this.idConflictResolve) { this.idConflictResolve(false);