ts类型报错

This commit is contained in:
xzf 2025-10-21 11:38:39 +08:00
parent a6966ae02c
commit 95bae42ad8
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ export default function render(
}
return Upload.LIST_IGNORE;
}}
ref={uploadRef}
ref={uploadRef as unknown as LegacyRef<HTMLElement>}
/>
</ImgCrop>
) : (
@ -242,7 +242,7 @@ export default function render(
}
return Upload.LIST_IGNORE;
}}
ref={uploadRef}
ref={uploadRef as unknown as LegacyRef<HTMLElement>}
/>
)}
</>