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 = () => { 生成配置: