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 + }