From 8e2d666ff836de9f8dcd6098438ce0256d7fde32 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 23 Feb 2025 16:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E4=BC=98=E5=8C=96=E5=85=B3?= =?UTF-8?q?=E4=BA=8E=E9=A1=B5=E9=9D=A2=E5=92=8C=E9=85=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=87=8D?= =?UTF-8?q?=E5=90=AF=E6=8C=89=E9=92=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/dashboard/routes/stat.py | 2 +- .../src/components/shared/ListConfigItem.vue | 2 +- dashboard/src/views/AboutPage.vue | 24 +++++++++++++++---- dashboard/src/views/ConfigPage.vue | 4 ++-- dashboard/src/views/Settings.vue | 22 ++++++++++++++++- 5 files changed, 45 insertions(+), 9 deletions(-) diff --git a/astrbot/dashboard/routes/stat.py b/astrbot/dashboard/routes/stat.py index 4e5d68ecd..1a7e61bc2 100644 --- a/astrbot/dashboard/routes/stat.py +++ b/astrbot/dashboard/routes/stat.py @@ -16,7 +16,7 @@ class StatRoute(Route): '/stat/get': ('GET', self.get_stat), '/stat/version': ('GET', self.get_version), '/stat/start-time': ('GET', self.get_start_time), - '/stat/restart-core': ('GET', self.restart_core) + '/stat/restart-core': ('POST', self.restart_core) } self.db_helper = db_helper self.register_routes() diff --git a/dashboard/src/components/shared/ListConfigItem.vue b/dashboard/src/components/shared/ListConfigItem.vue index be23f5d32..74ba445f2 100644 --- a/dashboard/src/components/shared/ListConfigItem.vue +++ b/dashboard/src/components/shared/ListConfigItem.vue @@ -1,7 +1,7 @@