Prechádzať zdrojové kódy

配合后端的修改fixbug

Michael Wang 4 rokov pred
rodič
commit
5e9e4ad0d9
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      src/features/OnlineExam/CheckComputer.vue

+ 4 - 1
src/features/OnlineExam/CheckComputer.vue

@@ -806,7 +806,10 @@ export default {
         }
       );
       this.wechat.qrValue = response.data;
-      this.wechat.examRecordDataId = examRecordDataId;
+      const trueExamRecordDataId = decodeURIComponent(response.data).match(
+        /&examRecordDataId=(\d+)/
+      )[1];
+      this.wechat.examRecordDataId = trueExamRecordDataId;
     };
     if (this.wechat.qrValue) {
       this.getQRCodeTimeout = setTimeout(() => {