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() {