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

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

parent 46b10fe8
Pipeline #97308 failed with stages
......@@ -380,6 +380,7 @@ const PlatformConfig = (props) => {
IsSSL: item?.HostAttr?.IsSSL,
},
};
const res1 = await saveHostConfig(params1);
if (item.HostKey === 'EMQ') {
// 直接保存
const params = {
......@@ -394,7 +395,7 @@ const PlatformConfig = (props) => {
message.warn(res?.msg);
}
} else {
const res1 = await saveHostConfig(params1);
if (res1 && res1?.code === SUCCESS_CODE) {
// 第一步保存成功后再保存数据库信息
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