fix: backport various fixes (#39203, #39236, #39239, #39248, #39251) (#39252)

This commit is contained in:
wxiaoguang authored and GitHub committed 2026-09-06 22:05:11 +08:00
1 parent a127bc1013
commit bc11b8ac22
9 files changed
+159 -16

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ export async function initDropzone(dropzoneEl: HTMLElement) {
const file = {name: attachment.name, uuid: attachment.uuid, size: attachment.size};
dzInst.emit('addedfile', file);
dzInst.emit('complete', file);
if (isImageFile(file.name)) {
if (isImageFile(file)) {
const imgSrc = `${attachmentBaseLinkUrl}/${file.uuid}`;
dzInst.emit('thumbnail', file, imgSrc);
}