瀏覽代碼

配合后端的修改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(() => {