From 0308d0cebadb5c0744d7f282c938104b9c9ce4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A6=8D?= <1455167345@qq.com> Date: Wed, 31 Jul 2024 17:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=8C=BA=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../header/components/notify/index.vue | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) 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();