瀏覽代碼

feat: 填空题自动估计调整

zhangjie 3 周之前
父節點
當前提交
bfee09e7b2
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 2
      src/features/mark/composables/useMakeTrack.ts
  2. 1 0
      src/types/index.ts

+ 2 - 2
src/features/mark/composables/useMakeTrack.ts

@@ -233,8 +233,8 @@ export default function useMakeTrack() {
     }
 
     // 通过题目设置的第一个评卷区,随机生成一个轨迹
-    const { picList } = question;
-    const area = picList[0] || null;
+    const { picList, qeustionPicList } = question;
+    const area = qeustionPicList ? qeustionPicList[0] : picList[0] || null;
     if (!area) return;
 
     const imageSize = markStore.currentTaskSliceImages[area.i];

+ 1 - 0
src/types/index.ts

@@ -341,6 +341,7 @@ interface RawQuestion {
   /** 限制最小分数 */
   minScore: number;
   picList: SplitConfig[];
+  qeustionPicList: SplitConfig[] | null;
   // 1-单选,2-多选,3-判断,4-填空,5-问答
   questionType: 1 | 2 | 3 | 4 | 5;
   /** 未计分 */