From a85ec69549946438f82488269cd341f3e229fed1 Mon Sep 17 00:00:00 2001 From: Chopper711 Date: Thu, 20 Feb 2025 15:48:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=A1=86=E4=BB=A5=E5=8F=8A=E6=B6=88=E6=81=AF=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=90=8E=E9=9C=80=E8=A6=81=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E5=B7=B2=E8=AF=BB=E6=8C=89=E9=92=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/message/message.vue | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/seller/src/views/message/message.vue b/seller/src/views/message/message.vue index 0bd2062d..12644441 100644 --- a/seller/src/views/message/message.vue +++ b/seller/src/views/message/message.vue @@ -109,8 +109,6 @@ API_Index.read(v.id).then(res => { this.loading = false; if (res.success) { - this.$Message.success("操作成功"); - this.currentMessageType = "unread" this.getAll(); } }); @@ -137,9 +135,7 @@ API_Index.deleteMessage(v.id).then(res => { this.loading = false; if (res.success) { - this.$Message.success("删除成功"); - this.currentMessageType = "read" - this.getAll(); + this.refreshMessage() } }); } @@ -166,9 +162,7 @@ API_Index.reductionMessage(v.id).then(res => { this.loading = false; if (res.success) { - this.setCurrentMesType("read"); - this.recycleBinCount -= 1 - this.hasReadCount +=1 + this.refreshMessage() } }); } @@ -194,9 +188,7 @@ API_Index.clearMessage(v.id).then(res => { this.loading = false; if (res.success) { - this.$Message.success("删除成功"); - this.currentMessageType = "recycleBin" - this.getAll(); + this.refreshMessage() } }); } @@ -383,9 +375,7 @@ API_Index.read(v.id).then(res => { this.loading = false; if (res.success) { - this.$Message.success("操作成功"); - this.currentMessageType = "unread" - this.getAll(); + this.getAll()(); } }); }