Compare commits
2 Commits
3d36aca9ac
...
774e5767fd
| Author | SHA1 | Date |
|---|---|---|
|
|
774e5767fd | |
|
|
0308d0ceba |
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue