From 1b0cd974f87e88b92b4fcf83fee6738271ee663f Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 25 Dec 2024 20:08:46 +0800 Subject: [PATCH] md --- src/layout/components/TopNotice/index.vue | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/layout/components/TopNotice/index.vue b/src/layout/components/TopNotice/index.vue index fd5bd4ed..a164bac9 100644 --- a/src/layout/components/TopNotice/index.vue +++ b/src/layout/components/TopNotice/index.vue @@ -153,7 +153,6 @@ export default { onMessage(evtStr){ let that=this; - if(evtStr==null||evtStr==undefined){ return; } @@ -167,8 +166,7 @@ export default { var messageBody = evt.title; let noticeId= evt.noticeId; - // this.$notify.closeAll(); - Notification.closeAll(); + // Notification.closeAll(); // this.speech.speak({ text: messageBody }).then(() => { // console.log("读取成功"); @@ -184,10 +182,8 @@ export default { onClick: function () { // 点击跳转的页面 // this.addReadTimes - // that.$notify.closeAll(); - Notification.closeAll(); + // Notification.closeAll(); that.setAddReadTimes(noticeId); - }, }); }, @@ -283,14 +279,12 @@ export default { /* 查看更多 */ more(type) { this.visible = false; - if (this.$route.path !== '/user/message' || this.$route.query.type !== type) { - this.$router.push({ - path: '/user/message', - query: { - type: type - } - }); - } + this.$router.push({ + path: '/KFGL/UserNoticeList', + query: { + type: type + } + }); } } }