WebviewId:xxx not fond
OnWebviewEvent:_DOMReady,WebviewId:xxx not fond
短时间内连续两次扫描小程序二维码进入小程序界面,第二次会出现WebviewId:xxx not fond问题,
页面流程,扫描小程序二维码后会进入过度界面(不含tabbar),判断参数没有变化后,跳转到首页(含tabar),
wx.switchTab({
url: ‘/pages/posts/post’
})
4 回复
if (wx.getStorageSync( 'token' ) && wx.getStorageSync( 'vemInfo' ) && wx.getStorageSync( 'vemId' )) { if (that.isDefined(options)) { if (that.isDefined(options.vemId) && that.isNumber(options.vemId)) { if (wx.getStorageSync( 'vemId' ) === options.vemId) { wx.switchTab({ url: '/pages/posts/post' }) } else { this .updDateLocation(options.vemId, false ) } } else { wx.switchTab({ url: '/pages/posts/post' }) } } else { wx.switchTab({ url: '/pages/posts/post' }) } } |