From f92750529a06615c44c5e765bb6b5ceaac68f4e0 Mon Sep 17 00:00:00 2001 From: pomegranate Date: Fri, 30 Jun 2023 15:14:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dwujie-react=E5=81=B6?= =?UTF-8?q?=E7=8E=B0=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD=E5=AD=90=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=85=83=E7=B4=A0=20(#599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wujie-react/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/wujie-react/index.js b/packages/wujie-react/index.js index d9ca0d6e..4cda4a52 100644 --- a/packages/wujie-react/index.js +++ b/packages/wujie-react/index.js @@ -29,13 +29,12 @@ export default class WujieReact extends React.PureComponent { console.log(error); } } - - execStartApp = () => { - this.startAppQueue = this.startAppQueue.then(this.startApp); - }; + + componentDidMount () { + this.startApp(); + } render() { - this.execStartApp(); const { width, height } = this.props; const { myRef: ref } = this.state; return
; @@ -66,4 +65,4 @@ const propTypes = { activated: PropTypes.func, deactivated: PropTypes.func, loadError: PropTypes.func, - } \ No newline at end of file + }