diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index fd081a78..aeab3a1c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -296,8 +296,8 @@ export default { that.msgMap[msgKey]=1; } - this.$notify.closeAll(); - Notification.closeAll() + // this.$notify.closeAll(); + Notification.closeAll(); Notification.info({ title: "通知:"+msgData.title, diff --git a/src/layout/components/TopNotice/index.vue b/src/layout/components/TopNotice/index.vue index 9ef3053e..a1144e50 100644 --- a/src/layout/components/TopNotice/index.vue +++ b/src/layout/components/TopNotice/index.vue @@ -162,11 +162,12 @@ export default { var messageBody = evt.title; let noticeId= evt.noticeId; - this.$notify.closeAll(); + // this.$notify.closeAll(); + Notification.closeAll(); - this.speech.speak({ text: messageBody }).then(() => { - console.log("读取成功"); - }); + // this.speech.speak({ text: messageBody }).then(() => { + // console.log("读取成功"); + // }); Notification.info({ title: "系统通知", @@ -178,8 +179,8 @@ export default { onClick: function () { // 点击跳转的页面 // this.addReadTimes - that.$notify.closeAll(); - + // that.$notify.closeAll(); + Notification.closeAll(); this.setAddReadTimes(noticeId); },