Commit 37f7c768 authored by 张瑶's avatar 张瑶

fix:兼容

parent 01fde767
Pipeline #86358 passed with stages
...@@ -422,14 +422,19 @@ class Login { ...@@ -422,14 +422,19 @@ class Login {
const self = this; const self = this;
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
// 获取网站配置的同时,预先获取到mqtt配置,注册进子应用 // 获取网站配置的同时,预先获取到mqtt配置,注册进子应用
// 兼容云平台子站不更新的情况
let param = {
client: self.globalConfig.client,
'request.preventCache': Date.now(),
};
if (window.location?.host === 'panda-water.cn') {
param.token = token;
} else {
param.identity = token;
}
Promise.allSettled([ Promise.allSettled([
noticeService.getMqttSiteCode({ 'request.preventCache': Date.now() }), noticeService.getMqttSiteCode({ 'request.preventCache': Date.now() }),
getWebSiteConfig({ getWebSiteConfig(param),
client: self.globalConfig.client,
// client: window.globalConfig.client,
identity: token,
'request.preventCache': Date.now(),
}),
]) ])
.then(results => { .then(results => {
const promise = results[0]; const promise = results[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