浏览代码

fix: apiServer错误

chenhao 2 年之前
父节点
当前提交
748db70aba
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/features/OnlineExam/CheckComputer.vue
  2. 1 1
      src/features/OnlineExam/Examing/TextQuestionView.vue

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

@@ -127,7 +127,7 @@ onMounted(async () => {
   );
   let origin = window.location.origin.replace(
     /.*(\.(ea100.com.cn|exam-cloud.cn))/,
-    `${location.protocol}://www$1`
+    `${location.protocol}//www$1`
   );
   console.debug("测试验证:", origin);
   if (import.meta.env.DEV) {

+ 1 - 1
src/features/OnlineExam/Examing/TextQuestionView.vue

@@ -202,7 +202,7 @@ async function fetchQRCode() {
       );
       let origin = window.location.origin.replace(
         /.*(\.(ea100.com.cn|exam-cloud.cn))/,
-        `${location.protocol}://www$1`
+        `${location.protocol}//www$1`
       );
       console.debug("测试验证:", origin);
       if (import.meta.env.DEV) {