NervJS / taro-todo

多端解决方案示例
56 stars 11 forks source link

h5: swiper: 从主页面进入到swiper后,通过浏览器左右键,返回再前进报错 #4

Open Rayliwang opened 6 years ago

Rayliwang commented 6 years ago

返回报:


index.js?20e7:264 Uncaught (in promise) TypeError: Cannot read property 'refs' of null
    at Object.detach (index.js?20e7:264)
    at unmount (index.js?20e7:604)
    at unmountChildren (index.js?20e7:579)
    at unmount (index.js?20e7:597)
    at unmountChildren (index.js?20e7:576)
    at unmount (index.js?20e7:597)
    at unmountComponent (index.js?20e7:1656)
    at ComponentWrapper.destroy (index.js?20e7:1850)
    at unmount (index.js?20e7:592)
    at unmountChildren (index.js?20e7:579)

再前进报

index.js?5ae2:2386 Uncaught (in promise) TypeError: Cannot read property 'removeEventListener' of null
    at Swiper.removeEvent (index.js?5ae2:2386)
    at Swiper.componentWillUnmount (index.js?5ae2:2718)
    at eval (index.js?20e7:1652)
    at errorCatcher (index.js?20e7:1461)
    at unmountComponent (index.js?20e7:1651)
    at ComponentWrapper.destroy (index.js?20e7:1850)
    at unmount (index.js?20e7:592)
    at unmountChildren (index.js?20e7:579)
    at unmount (index.js?20e7:597)
    at unmountComponent (index.js?20e7:1656)