From 3e928b965925043fa14fad50f65acb698954cf61 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Sat, 7 Feb 2026 19:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3/CI=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E5=8F=8D=E9=A6=88=E7=9A=84=E4=B8=80=E4=BA=9B=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/dashboard/routes/route.py | 2 +- astrbot/dashboard/server.py | 2 - .../src/components/chat/StandaloneChat.vue | 443 +++++++++--------- 3 files changed, 233 insertions(+), 214 deletions(-) diff --git a/astrbot/dashboard/routes/route.py b/astrbot/dashboard/routes/route.py index 8a22e1fa5..7af6fcf1a 100644 --- a/astrbot/dashboard/routes/route.py +++ b/astrbot/dashboard/routes/route.py @@ -1,6 +1,6 @@ from dataclasses import asdict, dataclass -from quart import Quart, jsonify +from quart import Quart from astrbot.core.config.astrbot_config import AstrBotConfig diff --git a/astrbot/dashboard/server.py b/astrbot/dashboard/server.py index bfafbcfc3..a02bdf512 100644 --- a/astrbot/dashboard/server.py +++ b/astrbot/dashboard/server.py @@ -108,8 +108,6 @@ class AstrBotDashboard: } ) - APP = self.app - dashboard_cfg = self.config.get("dashboard", {}) cors_cfg = dashboard_cfg.get("cors", {}) allow_origin = cors_cfg.get("allow_origins", "*") diff --git a/dashboard/src/components/chat/StandaloneChat.vue b/dashboard/src/components/chat/StandaloneChat.vue index 25ca7faf9..d17b5db89 100644 --- a/dashboard/src/components/chat/StandaloneChat.vue +++ b/dashboard/src/components/chat/StandaloneChat.vue @@ -1,82 +1,91 @@