diff --git a/src/layout/components/TopNotice/index.vue b/src/layout/components/TopNotice/index.vue index eb3c22c3..b4340956 100644 --- a/src/layout/components/TopNotice/index.vue +++ b/src/layout/components/TopNotice/index.vue @@ -182,18 +182,16 @@ export default { // this.addReadTimes // that.$notify.closeAll(); Notification.closeAll(); - this.setAddReadTimes(noticeId); + that.setAddReadTimes(noticeId); }, }); }, setAddReadTimes(noticeId){ - addReadTimes({"noticeId":noticeId}).then(response => { console.log("读取成功"); this.initUserNotice(); }); - }, initUserNotice() { // 获取通知信息