Explorar o código

配合后端的修改fixbug

Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
5e9e4ad0d9
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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(() => {