Commit ef8f89ab authored by 彭俊龙's avatar 彭俊龙

feat:平台配置emq保存逻辑调整

parent 46b10fe8
Pipeline #97308 failed with stages
...@@ -380,6 +380,7 @@ const PlatformConfig = (props) => { ...@@ -380,6 +380,7 @@ const PlatformConfig = (props) => {
IsSSL: item?.HostAttr?.IsSSL, IsSSL: item?.HostAttr?.IsSSL,
}, },
}; };
const res1 = await saveHostConfig(params1);
if (item.HostKey === 'EMQ') { if (item.HostKey === 'EMQ') {
// 直接保存 // 直接保存
const params = { const params = {
...@@ -394,7 +395,7 @@ const PlatformConfig = (props) => { ...@@ -394,7 +395,7 @@ const PlatformConfig = (props) => {
message.warn(res?.msg); message.warn(res?.msg);
} }
} else { } else {
const res1 = await saveHostConfig(params1);
if (res1 && res1?.code === SUCCESS_CODE) { if (res1 && res1?.code === SUCCESS_CODE) {
// 第一步保存成功后再保存数据库信息 // 第一步保存成功后再保存数据库信息
if (item.HostKey === 'PandaIOT') { if (item.HostKey === 'PandaIOT') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment