tangning преди 1 година
родител
ревизия
877f2fd3c9
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/app/mirror/App.vue

+ 2 - 1
src/app/mirror/App.vue

@@ -329,7 +329,8 @@ function getCaseScriptList() {
       console.log("getCaseScriptList", idList, active.value);
       Array.from(data.list).forEach((item) => {
         item.fileList.forEach(async (file: File, index) => {
-          if ((file as any).url.includes(".mp4") || (file as any).url.includes(".m4v")) {
+          console.log("getCaseScriptList", file);
+          if (file && !file.cover &&( (file as any).url.includes(".mp4") || (file as any).url.includes(".m4v"))) {
             const res = await CaseScriptGetCover((file as any).url);
             (item.fileList[index] as any).cover = res;
           } else {