Преглед на файлове

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