This commit is contained in:
linfso 2024-12-25 20:08:46 +08:00
parent 666131a42c
commit 1b0cd974f8

View File

@ -153,7 +153,6 @@ export default {
onMessage(evtStr){ onMessage(evtStr){
let that=this; let that=this;
if(evtStr==null||evtStr==undefined){ if(evtStr==null||evtStr==undefined){
return; return;
} }
@ -167,8 +166,7 @@ export default {
var messageBody = evt.title; var messageBody = evt.title;
let noticeId= evt.noticeId; let noticeId= evt.noticeId;
// this.$notify.closeAll(); // Notification.closeAll();
Notification.closeAll();
// this.speech.speak({ text: messageBody }).then(() => { // this.speech.speak({ text: messageBody }).then(() => {
// console.log("读取成功"); // console.log("读取成功");
@ -184,10 +182,8 @@ export default {
onClick: function () { onClick: function () {
// 点击跳转的页面 // 点击跳转的页面
// this.addReadTimes // this.addReadTimes
// that.$notify.closeAll(); // Notification.closeAll();
Notification.closeAll();
that.setAddReadTimes(noticeId); that.setAddReadTimes(noticeId);
}, },
}); });
}, },
@ -283,14 +279,12 @@ export default {
/* 查看更多 */ /* 查看更多 */
more(type) { more(type) {
this.visible = false; this.visible = false;
if (this.$route.path !== '/user/message' || this.$route.query.type !== type) { this.$router.push({
this.$router.push({ path: '/KFGL/UserNoticeList',
path: '/user/message', query: {
query: { type: type
type: type }
} });
});
}
} }
} }
} }