不同页面跳转会丢失页面中的组件事件



  • Taro.reLaunch(Object object)
    跳转打开的页面,页面内的所有的组件事件都是not function

    Taro.switchTab(Object object)
    跳转打开的页面,没有问题。

    _this.props.onNetWork is not a function;at pages/logs/logs onReady function;at api getNetworkType success callback function

    TypeError: _this.props.onNetWork is not a function
    Failed prop type: The prop onNetWork is marked as required in BaseComponent, but its value is undefined.


登录后回复