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

fix: 报警播报修改

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