uViewUI报错Cannot read property 'bottom' of null的解决方法
uViewUI在H5下报错’bottom’ of null,产生的原因是:吸顶组件u-sticky和底部导航栏tabbar切换页面时产生冲突,
sticky组件创建了Observer监听,当切换页面且页面没有销毁时,导致组件仍然保持监听,所以出现Cannot read property ‘bottom’ of null报错
解决办法
uViewUI在H5下报错’bottom’ of null,产生的原因是:吸顶组件u-sticky和底部导航栏tabbar切换页面时产生冲突,
sticky组件创建了Observer监听,当切换页面且页面没有销毁时,导致组件仍然保持监听,所以出现Cannot read property ‘bottom’ of null报错
解决办法