微信小程序跳转web-vie时提示appId无法读取:Cannot read property 'appId' of undefined

时间:2021-02-02 19:55:40

微信小程序报web-view错无法读取appId:Cannot read property 'appId' of undefined

问题描述:

我以前一直如下写代码没报错也都是可以使用的,并且小程序以前访问该链接是可以访问到的,可前几天突然报错,不知道怎么解决了

我的代码如下 :

wxml

  <view class="item" bindtap="bindViewTap">点击跳转</view>

js

  // 点击查看详情
handleClickArticle: function () {
wx.navigateTo({
url: '/pages/index/weixinlink/weixinlink'
// url: '../logs/logs'
})
},

web-view

<web-view src="https://mp.weixin.qq.com/s/p5pp8MHMgY9AvZ-xOBpspw"></web-view>

报错信息如下:

VM578:1 Fri Sep 27 2019 23:51:04 GMT+0800 (中国标准时间) 渲染层错误
VM512:1 webviewScriptError
Cannot read property 'appId' of undefined;[Exparser] [Error] [Component] Property Observer Error @ wx-web-view#srcChange
TypeError: Cannot read property 'appId' of undefined
at n.srcChange (WAWebview.js:1:992375)
at Function.i.safeCallback (WAWebview.js:1:139753)
at n.<anonymous> (WAWebview.js:1:231733)
at a.doUpdates (WAWebview.js:1:247526)
at e (WAWebview.js:1:1275403)
at s (WAWebview.js:1:1278086)
at e (WAWebview.js:1:1263511)
at e (WAWebview.js:1:1263642)
at e.value (WAWebview.js:1:1232540)
at O._advancedCreate (WAWebview.js:1:238474)
VM579:1 Fri Sep 27 2019 23:51:04 GMT+0800 (中国标准时间) 渲染层错误
VM512:1 TypeError: Cannot read property 'appId' of undefined
at n.srcChange (:39730/appservice/WAWebview.js:1)
at Function.i.safeCallback (:39730/appservice/WAWebview.js:1)
at n.<anonymous> (:39730/appservice/WAWebview.js:1)
at a.doUpdates (:39730/appservice/WAWebview.js:1)
at e (:39730/appservice/WAWebview.js:1)
at s (:39730/appservice/WAWebview.js:1)
at e (:39730/appservice/WAWebview.js:1)
at e (:39730/appservice/WAWebview.js:1)
at e.value (:39730/appservice/WAWebview.js:1)
at O._advancedCreate (:39730/appservice/WAWebview.js:1)

截图显示:

微信小程序跳转web-vie时提示appId无法读取:Cannot read property 'appId' of undefined

微信小程序跳转web-vie时提示appId无法读取:Cannot read property 'appId' of undefined

解决方案:

我也不知道,感觉就是一个坑;我用真机调试又是OK的,没什么问题。

微信小程序跳转web-vie时提示appId无法读取:Cannot read property 'appId' of undefined