修复图片加载bug

This commit is contained in:
AncTe committed 2023-06-30 21:24:14 +08:00
1 parent 3bdb668c5f
commit c25f0d7c15
7 files changed
+39 -9

No files matched your search

+4
View File
@@ -115,6 +115,10 @@ export class Resource<
);
});
});
} else if (this.format === 'image') {
const img = v as HTMLImageElement;
img.setAttribute('_width', img.width.toString());
img.setAttribute('_height', img.height.toString());
}
if (this.name === '__all_animates__') {