From e49c0fb356b1ae13d27aba18fab4c5eec829bd62 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Tue, 31 Dec 2024 16:38:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6token?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E8=B8=A2=E5=87=BA=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/myUpload/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/components/myUpload/index.vue b/src/views/components/myUpload/index.vue index baf968d..173826c 100644 --- a/src/views/components/myUpload/index.vue +++ b/src/views/components/myUpload/index.vue @@ -151,6 +151,14 @@ export default { if (res.code === 200) { this.uploadList.push({ name: res.fileName, url: res.fileName }); this.uploadedSuccessfully(); + } else if(res.code == 401) { + this.$store.dispatch('LogOut').then(() => { + // location.href = '/login'; + this.$modal.msgError(res.msg); + this.$modal.closeLoading(); + this.uploadedSuccessfully(); + this.$router.replace("/login"); + }) } else { this.number--; this.$modal.closeLoading();