消息区分类型

dianlixunjian
刘妍 2024-07-31 17:25:56 +08:00
parent ccdd906fe8
commit 0308d0ceba
1 changed files with 17 additions and 12 deletions

View File

@ -214,18 +214,23 @@
//
signal.on('RevMsg', (user, message, time, id, issystem) => {
console.log('报警', user, message, time, id, issystem); //
notification.info({
message: '您有一条新消息',
description: () => {
const res = message + '\n' + time;
return h('pre', {}, res);
},
duration: 3,
});
showCloudQuery({
id,
});
getList();
// ChaoShi
// CloudQuery
if (user == 'CloudQuery') {
showCloudQuery({
id,
});
} else {
notification.info({
message: '您有一条新消息',
description: () => {
const res = message + '\n' + time;
return h('pre', {}, res);
},
duration: 3,
});
getList();
}
});
onMounted(() => {
getList();