diff --git a/src/layouts/default/header/components/notify/index.vue b/src/layouts/default/header/components/notify/index.vue index 821135ea..ec9cf1e9 100644 --- a/src/layouts/default/header/components/notify/index.vue +++ b/src/layouts/default/header/components/notify/index.vue @@ -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();