|
@@ -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 {
|