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