fixed typescript error

This commit is contained in:
lloydzhou
2024-07-15 21:21:50 +08:00
parent a1117cd4ee
commit b3a324b6f5
3 changed files with 21 additions and 7 deletions

View File

@@ -152,7 +152,7 @@ export function Sd() {
db={fileDb}
src={item.img_data}
alt={item.id}
onClick={(data, e) => {
onClick={(data: any, e: any) => {
showImageModal(
data,
true,
@@ -164,7 +164,6 @@ export function Sd() {
: { width: "100%", height: "100%" },
);
}}
isMobileScreen={isMobileScreen}
/>
) : item.status === "error" ? (
<div className={styles["pre-img"]}>