Jelajahi Sumber

配合后端的修改fixbug

Michael Wang 4 tahun lalu
induk
melakukan
5e9e4ad0d9
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  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(() => {