From a57e4d4b46b886f949dd08e569efd457663215f1 Mon Sep 17 00:00:00 2001 From: Jerry Date: Wed, 9 Jul 2025 18:44:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=BF=E5=BC=A5=E8=AF=BA=E6=96=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/pages/ConfigPage.jsx | 8 +++++--- src/frontend/src/services/api/api.js | 8 +++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/pages/ConfigPage.jsx b/src/frontend/src/pages/ConfigPage.jsx index e67eda7..5e77270 100644 --- a/src/frontend/src/pages/ConfigPage.jsx +++ b/src/frontend/src/pages/ConfigPage.jsx @@ -96,7 +96,7 @@ const ConfigPage = () => { }; const handleApply = async () => { - if (!editableConfig.trim()) { + if (!editableConfig) { Notification.warn({ title: '配置为空', description: '请先解析或编辑有效配置', @@ -213,13 +213,15 @@ const ConfigPage = () => { 生成配置: