This commit is contained in:
linfso 2024-12-13 09:30:10 +08:00
parent 5a86cef7c5
commit c5cbae055f
2 changed files with 9 additions and 8 deletions

View File

@ -296,8 +296,8 @@ export default {
that.msgMap[msgKey]=1; that.msgMap[msgKey]=1;
} }
this.$notify.closeAll(); // this.$notify.closeAll();
Notification.closeAll() Notification.closeAll();
Notification.info({ Notification.info({
title: "通知:"+msgData.title, title: "通知:"+msgData.title,

View File

@ -162,11 +162,12 @@ export default {
var messageBody = evt.title; var messageBody = evt.title;
let noticeId= evt.noticeId; let noticeId= evt.noticeId;
this.$notify.closeAll(); // this.$notify.closeAll();
Notification.closeAll();
this.speech.speak({ text: messageBody }).then(() => { // this.speech.speak({ text: messageBody }).then(() => {
console.log("读取成功"); // console.log("读取成功");
}); // });
Notification.info({ Notification.info({
title: "系统通知", title: "系统通知",
@ -178,8 +179,8 @@ export default {
onClick: function () { onClick: function () {
// 点击跳转的页面 // 点击跳转的页面
// this.addReadTimes // this.addReadTimes
that.$notify.closeAll(); // that.$notify.closeAll();
Notification.closeAll();
this.setAddReadTimes(noticeId); this.setAddReadTimes(noticeId);
}, },