Commit 33c40952 authored by 张瑶's avatar 张瑶

fix: 跳转修改

parent 40d84c2a
Pipeline #66976 passed with stages
......@@ -198,16 +198,21 @@ class Login {
])
.then(results => {
const promise = results[0];
if (promise.status === 'rejected') return results;
const mqttConfig = {
mqtt_mess: {},
mqtt_path: DEFAULT_MQTT_PATH,
nginxStart: false,
mqtt_IsSSL: true,
ipConfig: {},
};
if (promise.status === 'rejected') {
self.globalConfig = Object.assign(self.globalConfig, {
...mqttConfig,
});
return results;
}
const res = promise.value || {};
if (res && res.code === 0) {
const mqttConfig = {
mqtt_mess: {},
mqtt_path: DEFAULT_MQTT_PATH,
nginxStart: false,
mqtt_IsSSL: true,
ipConfig: {},
};
if (Array.isArray(res.data) && res.data.length > 0) {
if (res.data[0]) {
const data = res.data[0];
......
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