diff --git a/src/layout/components/TopNotice/index.vue b/src/layout/components/TopNotice/index.vue index 9a689898..1b333e12 100644 --- a/src/layout/components/TopNotice/index.vue +++ b/src/layout/components/TopNotice/index.vue @@ -249,7 +249,7 @@ export default { /* 清空消息 */ clear(type) { if (type === 'alert') { - let noticeIds=this.alertList.map(item=>item.id).join(','); + let noticeIds=this.alertList.map(item=>item.noticeId).join(','); clearNotice(noticeIds).then(response => { console.log("清除成功"); this.alertList = [];