getCurrentPages 获取页面实例报错

getCurrentPages

微信小程序 getCurrentPages 并不能准确获取页面实例(可能造成报错),建议使用 webviewId 确定具体页面