Browse Source

fix: 模式4第二页轨迹展示问题

zhangjie 10 months ago
parent
commit
a0ac20f1fd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/features/student/studentInspect/MarkBody.vue

+ 2 - 2
src/features/student/studentInspect/MarkBody.vue

@@ -261,7 +261,7 @@ async function processImage() {
   // 无答题卡,模式4
   if (!store.currentTask.cardData.length) {
     // 只有单评才展示summary
-    const summarys = store.setting.doubleTrack ? [] : parseMode4Data();
+    const summarys = store.setting.doubleTrack ? undefined : parseMode4Data();
     for (const url of urls) {
       const indexInSliceUrls = urls.indexOf(url) + 1;
       const image = images[indexInSliceUrls - 1];
@@ -272,7 +272,7 @@ async function processImage() {
         originalImageWidth: image.naturalWidth,
         originalImageHeight: image.naturalHeight,
         width: (image.naturalWidth / maxImageWidth) * 100 + "%",
-        summarys: indexInSliceUrls === 1 ? summarys : [],
+        summarys: indexInSliceUrls === 1 ? summarys : undefined,
       });
     }
     return;