From bdfec44c9f3a37dbbe05bf14a252ffec04132a86 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 06 九月 2022 21:24:28 +0800 Subject: [PATCH] Merge branch 'develop' --- src/templates/sharecomponent/settingcomponent/settingform/index.jsx | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/templates/sharecomponent/settingcomponent/settingform/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/index.jsx index 2fec3e1..eb8577c 100644 --- a/src/templates/sharecomponent/settingcomponent/settingform/index.jsx +++ b/src/templates/sharecomponent/settingcomponent/settingform/index.jsx @@ -334,6 +334,14 @@ param.timestamp = timestamp param.secretkey = Utils.encrypt('', timestamp) + if (r.errors) { + notification.warning({ + top: 92, + message: r.errors, + duration: 5 + }) + } + let sumParam = null if (r.sumSql) { sumParam = { @@ -346,10 +354,10 @@ sumParam.secretkey = Utils.encrypt('', sumParam.timestamp) } - Api.getLocalConfig(param).then(result => { + Api.genericInterface(param).then(result => { if (result.status) { if (sumParam) { - Api.getLocalConfig(sumParam).then(res => { + Api.genericInterface(sumParam).then(res => { if (res.status) { _resolve() } else { -- Gitblit v1.8.0