From 8e1913493e4510247e8dd36f358cc9028e0fac9e Mon Sep 17 00:00:00 2001 From: "xuying.xu" Date: Tue, 15 Oct 2024 16:03:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=8F=E7=A8=8B=E5=BA=8Fupdate?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0catch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/f-my/src/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/f-my/src/index.tsx b/packages/f-my/src/index.tsx index d8e60c3..3edbef3 100644 --- a/packages/f-my/src/index.tsx +++ b/packages/f-my/src/index.tsx @@ -67,10 +67,13 @@ Component({ if (!canvas) return; const { theme, px2hd } = props; const children = props.onRender(props); - canvas.update({ + const updateProps = { theme, px2hd, children, + }; + canvas.update(updateProps).catch((error) => { + this.catchError(error); }); }, didUnmount() {