Kaynağa Gözat

fix specialTagList null

Michael Wang 3 yıl önce
ebeveyn
işleme
eb4b1640cd

+ 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
     );