jiajunchen 14 小時之前
父節點
當前提交
825649057e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      src/view/dati/examCheck/index.vue

+ 4
- 4
src/view/dati/examCheck/index.vue 查看文件

@@ -149,8 +149,8 @@ import.meta.env.VITE_BASE_API
149 149
 const goaddPeo = async (item) => {
150 150
   currentExamItem.value = item;
151 151
 
152
-  // ✅ 构建跳转 URL(指向你的答题页面)
153
-  const baseUrl = window.location.origin + '/fcbkdatistart';
152
+  //
153
+  const baseUrl = window.location.origin + '/sgsafeh5/fcbkdatistart';
154 154
 
155 155
   const url = new URL(baseUrl);
156 156
   url.searchParams.set('examId', item.id);           // 考试ID
@@ -158,10 +158,10 @@ const goaddPeo = async (item) => {
158 158
   url.searchParams.set('checkTime', item.checkTime); //考试时间
159 159
   url.searchParams.set('checkName', item.checkName || '');
160 160
   url.searchParams.set('testType', item.testType || '');//考试类型
161
-  // 如果还需要 userId,也可以加:
161
+
162 162
    url.searchParams.set('addId', localStorage.getItem('userId') || '');
163 163
 
164
-  const qrContent = url.toString(); // ← 这就是二维码内容!
164
+  const qrContent = url.toString();
165 165
 
166 166
   try {
167 167
     qrDataUrl.value = await QRCode.toDataURL(qrContent, {

Loading…
取消
儲存