|
@@ -327,17 +327,17 @@ function getCaseScriptList() {
|
|
|
active.value = idList.length == 0 ? 0 : Math.max.apply(null, idList) || 1;
|
|
|
sortList.value = data.list.map((_, index) => index);
|
|
|
console.log("getCaseScriptList", idList, active.value);
|
|
|
- Array.from(data.list).forEach((item) => {
|
|
|
- item.fileList.forEach(async (file: File, index) => {
|
|
|
- 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 {
|
|
|
- (item.fileList[index] as any).cover = (file as any).url;
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
+ // Array.from(data.list).forEach((item) => {
|
|
|
+ // item.fileList.forEach(async (file: File, index) => {
|
|
|
+ // console.log("getCaseScriptList", file);
|
|
|
+ // if ((file as any).url.includes(".mp4") || (file as any).url.includes(".m4v")) {
|
|
|
+ // const res = file.cover || await CaseScriptGetCover((file as any).url);
|
|
|
+ // (item.fileList[index] as any).cover = res;
|
|
|
+ // } else {
|
|
|
+ // (item.fileList[index] as any).cover = (file as any).url;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|