From f236bc23910d60b3f1ce54e6dbc0d9e1c689ca67 Mon Sep 17 00:00:00 2001 From: kklldog Date: Tue, 4 Jan 2022 02:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A50=E4=B8=AA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9=E7=9A=84=E6=97=B6=E5=80=99=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E7=9B=B4=E6=8E=A5=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj | 4 ++-- .../react-ui-antd/src/pages/Configs/comps/JsonImport.tsx | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj b/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj index 9262bcf8..b933c54d 100644 --- a/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj +++ b/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj @@ -3,11 +3,11 @@ net6.0 InProcess - 1.5.7.5 + 1.5.7.6 1.5.2 1.5.3.2 Linux - 1.5.7.5 + 1.5.7.6 diff --git a/AgileConfig.Server.UI/react-ui-antd/src/pages/Configs/comps/JsonImport.tsx b/AgileConfig.Server.UI/react-ui-antd/src/pages/Configs/comps/JsonImport.tsx index 171b8968..0b4e3915 100644 --- a/AgileConfig.Server.UI/react-ui-antd/src/pages/Configs/comps/JsonImport.tsx +++ b/AgileConfig.Server.UI/react-ui-antd/src/pages/Configs/comps/JsonImport.tsx @@ -15,6 +15,11 @@ export type JsonImportFormProps = { onSaveSuccess: ()=> void; }; const handleSave = async ( items: JsonImportItem[], env: string) => { + if (items.length === 0) { + message.warning('没有需要导入的配置项!'); + return; + } + const hide = message.loading('正在导入'); try { const result = await addRangeConfig(items, env);