소스 검색

配合后端的修改fixbug

Michael Wang 4 년 전
부모
커밋
5e9e4ad0d9
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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(() => {