fix: resolve React ReactNode type compatibility issue in portal.tsx

- Fixed TypeScript compilation error in createPortal function
- Added type assertion to resolve React type definition conflicts
- Ensures successful build process for deployment
This commit is contained in:
qikongjian 2025-08-25 01:02:44 +08:00
parent 752cbe9ae5
commit a10ab3ec1a

View File

@ -16,7 +16,7 @@ export function Portal({ children }: PortalProps) {
if (!mounted) return null; if (!mounted) return null;
return createPortal( return createPortal(
children, children as any,
document.body document.body
); );
} }