瀏覽代碼

断点续考登录页面逻辑修复

Michael Wang 5 年之前
父節點
當前提交
7a723cba43
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 0 1
      src/features/Login/Login.vue
  2. 4 2
      src/mixins/mixins.js

+ 0 - 1
src/features/Login/Login.vue

@@ -328,7 +328,6 @@ export default {
               "断点续考",
               "重新登录",
             ]);
-            this.logout("?LogoutReason=登录页面获取断点续考信息异常");
             return;
           }
           this.$router.push("/online-exam");

+ 4 - 2
src/mixins/mixins.js

@@ -65,12 +65,14 @@ Vue.mixin({
                   examingRes.examRecordDataId
               );
               console.log(resAfter);
-              if (resAfter.data.code === "S-101222") {
+              if (resAfter.data.code === "S-101000") {
+                continue;
+              } else if (resAfter.data.code === "000000") {
                 break;
               }
             }
           }
-          if (res.status === 200 && resAfter.data.code === "S-101000") {
+          if (res.status === 200 && resAfter.data.code === "000000") {
             this.$router.replace({
               path: `/online-exam/exam/${examingRes.examId}/examRecordData/${examingRes.examRecordDataId}/end`,
             });