|
@@ -28,6 +28,7 @@ import { A2_APIchangeImgName } from "@/store/action/A2exhibition";
|
|
|
|
|
|
export type FileListType = {
|
|
|
fileName: string;
|
|
|
+ thumb?: string;
|
|
|
filePath: string;
|
|
|
id: number;
|
|
|
type: "model" | "img" | "audio" | "video";
|
|
@@ -366,7 +367,7 @@ function ZupTypes(
|
|
|
fileIds.push(v.id);
|
|
|
if (oneIsCover && i === 0) {
|
|
|
// 返回 第一张图的url 作为封面
|
|
|
- coverUrl = v.filePath;
|
|
|
+ coverUrl = v.thumb || v.filePath;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -498,12 +499,12 @@ function ZupTypes(
|
|
|
onDragEnter={(e) => handleDragEnter(e, v)}
|
|
|
onDragEnd={() => setDragImg(null)}
|
|
|
>
|
|
|
- {v.filePath ? (
|
|
|
+ {v.thumb || v.filePath ? (
|
|
|
<ImageLazy
|
|
|
noLook={true}
|
|
|
width={100}
|
|
|
height={100}
|
|
|
- src={v.filePath}
|
|
|
+ src={v.thumb || v.filePath}
|
|
|
/>
|
|
|
) : null}
|
|
|
|