react学习(50)--解决异步执行顺序问题
生活随笔
收集整理的這篇文章主要介紹了
react学习(50)--解决异步执行顺序问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
this.props.dispatch({type: 'activity/addActivityPopup',payload: params,callback: (res) => {if (res.returnCode === 0) {message.success('新增成功');if (flag === true) {this.props.dispatch({type: 'activity/publishActivityPopup',payload: { codeList: [res.data] },callback: (res) => {openTab(this.props, `/management/frameList/index`);refreshPage(this.props, `/management/frameList/index`);},});} else {openTab(this.props, `/management/frameList/index`);refreshPage(this.props, `/management/frameList/index`);}} else {message.error(res.returnMsg);}},});
總結
以上是生活随笔為你收集整理的react学习(50)--解决异步执行顺序问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Vuex 源码还有一些缺陷?
- 下一篇: 入坑 Electron 开发跨平台桌面应