From 14a96291671906913e321aea10452aa9a70aaea2 Mon Sep 17 00:00:00 2001 From: cp3hnu Date: Wed, 21 May 2025 17:05:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0iframe=20=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=A4=B1=E8=B4=A5=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/src/components/IFramePage/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/react-ui/src/components/IFramePage/index.tsx b/react-ui/src/components/IFramePage/index.tsx index a087da42..53629ce6 100644 --- a/react-ui/src/components/IFramePage/index.tsx +++ b/react-ui/src/components/IFramePage/index.tsx @@ -83,15 +83,21 @@ function IframePage({ type, openInTab = false, className, style }: IframePagePro requestIframeUrl(); }, [type]); - const hideLoading = () => { + const handleLoad = () => { // setLoading(false); Loading.hide(); }; + const handleError = (error?: React.SyntheticEvent) => { + // setLoading(false); + console.log('error', error); + Loading.hide(); + }; + return (
{/* {loading && createPortal(, document.body)} */} - + {openInTab && window.open(iframeUrl, '_blank')} />}
);