Commit d08f83a1 authored by 杨思琦's avatar 杨思琦

fix: 报警播报修改

parent 0394433d
Pipeline #77836 passed with stages
......@@ -447,6 +447,7 @@ class Notifier {
speakAlarm = message => {
const device =
message?.infoContent?.title
?.replace(/_/g, ',')
?.split(' ')
?.splice(1)
?.join(' ') ?? ''; // 报警设备:“【阈值报警】 二供泵房 | 光谷物联港”
......
......@@ -261,10 +261,11 @@ export const initMicroApps = (url) => {
start(Configuration);
runAfterFirstMounted(() => {
event.emit('loading', false);
const time = micro.length > 3 ? 3000 : 500;
setTimeout(() => {
prefetchApps(micro);
}, time)
if(micro.length <= 3) {
setTimeout(() => {
prefetchApps(micro);
}, 500)
}
Logger.info('[MainApp] first app mounted');
});
addGlobalUncaughtErrorHandler(event => {
......
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