From 7a4648a8a32e63730fc786c3fe481e57f79a38e9 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Wed, 19 Oct 2022 17:58:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/user/Message.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/portal/user/Message.vue b/src/views/portal/user/Message.vue index 2c9999a6..e1d920cd 100644 --- a/src/views/portal/user/Message.vue +++ b/src/views/portal/user/Message.vue @@ -95,10 +95,10 @@ export default { }, mounted() { this.queryMessage(true); - this.isReadChooseList(); + // this.isReadChooseList(); }, updated() { - this.isReadChooseList(); + // this.isReadChooseList(); }, watch: { checkAll(newVal) { @@ -179,14 +179,17 @@ export default { if (!this.data[i].isRead) { ids.push(this.data[i].id); } + } if (ids.length !== 0) { apiMessage.updateIsRead(ids).then(res => { if (res.status == 200) { this.$store.dispatch('refrashMsg'); + this.queryMessage(true) } }); } + // this.queryMessage(); }, delChooseList() { let list = this.data.filter(item => item.checked).map(v => v.id);