From 0c396181f78dff33800e33b923cbfb27aabd0ff1 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 13 Mar 2025 15:37:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=20refactor:=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E6=A0=B7=E5=BC=8F=E9=87=8D=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/shared/AstrBotConfig.vue | 227 +++++++++--------- .../src/components/shared/ListConfigItem.vue | 166 ++++++------- dashboard/src/views/ConfigPage.vue | 110 +++++---- 3 files changed, 253 insertions(+), 250 deletions(-) diff --git a/dashboard/src/components/shared/AstrBotConfig.vue b/dashboard/src/components/shared/AstrBotConfig.vue index 6ace849ef..38d3f3c27 100644 --- a/dashboard/src/components/shared/AstrBotConfig.vue +++ b/dashboard/src/components/shared/AstrBotConfig.vue @@ -1,130 +1,135 @@ - - \ No newline at end of file + removeItem(index) { + this.items.splice(index, 1); + }, + }, +}; + + + \ No newline at end of file diff --git a/dashboard/src/views/ConfigPage.vue b/dashboard/src/views/ConfigPage.vue index 48b866c0f..d7f0f4ecb 100644 --- a/dashboard/src/views/ConfigPage.vue +++ b/dashboard/src/views/ConfigPage.vue @@ -30,73 +30,79 @@ import config from '@/config'; - + {{ metadata[key]['name'] }} - - - -

{{metadata[key]['metadata'][key2]['description']}}

-
- - - - 😄 消息平台适配器和服务提供商的配置已经迁移至更方便的独立页面!推荐前往左栏配置哦~ - +
+ +
+ + + + {{ item[metadata[key]['metadata'][key2]?.tmpl_display_title] }} + + + {{ item.id }}({{ item.type }}) + + + + + + {{ index }} + + + + + + + + + 删除这项 + + + + + + + +
+ +
+ +
+ + +
+ + +
+ +
- - - {{ item[metadata[key]['metadata'][key2]?.tmpl_display_title] }} - - - {{ item.id }}({{ item.type }}) - - - - - - {{ index }} - - - - - - - - - 删除这项 - - - - - -
- - - - - -
-
- 不了解配置?请见 官方文档 + 不了解配置?请见 官方文档加群询问