From ff515ffdefbe355d2b662db11cd979ff2ba3dfb8 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Thu, 25 May 2023 17:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=8A=A0=E8=BD=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/userCenter/mail/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/userCenter/mail/index.vue b/src/views/userCenter/mail/index.vue index 7a17354..e143990 100644 --- a/src/views/userCenter/mail/index.vue +++ b/src/views/userCenter/mail/index.vue @@ -76,7 +76,8 @@ title="查看详情" :visible.sync="dialogPreview" width="30%" - class="addreport"> + class="addreport" + :before-close="handleClose">
{{detail.messageTitle}}
@@ -178,7 +179,12 @@ export default { this.q.pageNo = val this.reportList() }, - + handleClose(){ + this.$api.message.oneRead(this.detail.id).then(res=>{ + this.dialogPreview=false + this.reportList() + }) + }, // 重置 reset() { this.q = { @@ -192,6 +198,7 @@ export default { //弹出详情 this.detail=row this.dialogPreview=true + } }, created() {