Эх сурвалжийг харах

Merge branch 'dev_1.2.4' of http://git.qmth.com.cn/union-question/union-question-web into dev_1.2.4

zhangjie 2 жил өмнө
parent
commit
1203268949

+ 14 - 0
src/modules/questions/views/ImportPaperInfo.vue

@@ -235,6 +235,20 @@ export default {
     uploadError(err) {
       var result = err.message.match(/\{.+}/);
       var errMessage = JSON.parse(result[0]).desc;
+      var code = JSON.parse(result[0]).code;
+      if (code == 403 || code == 401) {
+        this.$alert("登录失效,请重新登录!", "提示", {
+          confirmButtonText: "确定",
+          callback: () => {
+            this.$router.push({
+              name: "Login",
+              query: { orgId: this.user.rootOrgId },
+            });
+          },
+        });
+        return;
+      }
+
       this.errDialog = true;
       this.errMessage = errMessage;
       this.fileLoading = false;