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() {