瀏覽代碼

fix specialTagList null

Michael Wang 3 年之前
父節點
當前提交
eb4b1640cd
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/features/student/importInspect/MarkBody.vue
  2. 1 1
      src/features/student/inspect/MarkBody.vue

+ 1 - 1
src/features/student/importInspect/MarkBody.vue

@@ -78,7 +78,7 @@ async function processImage() {
     const thisImageTrackList = trackLists.filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );
-    const thisImageTagList = store.currentTask.specialTagList.filter(
+    const thisImageTagList = (store.currentTask.specialTagList || []).filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );
 

+ 1 - 1
src/features/student/inspect/MarkBody.vue

@@ -78,7 +78,7 @@ async function processImage() {
     const thisImageTrackList = trackLists.filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );
-    const thisImageTagList = store.currentTask.specialTagList.filter(
+    const thisImageTagList = (store.currentTask.specialTagList || []).filter(
       (t) => t.offsetIndex === indexInSliceUrls
     );