运行示例项目至hbx 3.1.4 百度小程序 即可复现

- 发布:2021-03-04 22:37
- 更新:2021-03-19 15:11
- 阅读:1847
产品分类: uniapp/小程序/百度
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: xxx
HBuilderX类型: Alpha
HBuilderX版本号: 3.1.4
第三方开发者工具版本号: xxx
基础库版本号: xxx
项目创建方式: HBuilderX
操作步骤:
预期结果:
Vue.prototype.xxx = function () {} 可以使用并点击tabbar跳转页面无报错
Vue.prototype.xxx = function () {} 可以使用并点击tabbar跳转页面无报错
实际结果:
Vue.prototype.xxx = function () {} 不能使用并点击tabbar跳转页面有报错
Vue.prototype.xxx = function () {} 不能使用并点击tabbar跳转页面有报错
bug描述:
百度小程序
-
在 hbx 3.1.2、3.1.3、3.1.4 中都有此问题: Vue.prototype.xxx = function () {} 页面上使用无效,3.0.7 无问题
-
在 hbx 3.1.2、3.1.3、3.1.4 中都有此问题: Vue.filter('xxx', function () {})页面上使用无效,3.0.7 无问题
-
在hbx 3.0.7、3.1.2、3.1.3、3.1.4 中点击tabbar 都报错: [Lifecycle Fail] call Page.onTabItemTap method fail:
-
Cannot read property 'onTabItemTap' of undefined
-
TypeError: [Lifecycle Fail] call Page.onTabItemTap method fail:
-
Cannot read property 'onTabItemTap' of undefined

隔了段时间迭代小程序,打开百度的小程序就出现了
index.js:1 [Lifecycle Fail] call Page.onTabItemTap method fail:
Cannot read property 'onTabItemTap' of undefined
TypeError: [Lifecycle Fail] call Page.onTabItemTap method fail:
Cannot read property 'onTabItemTap' of undefined
排查了一下,发现之前的百度小程序基础库设置的是3.200.1,在最新的3.260.37基础库就出现这问题
比较严重的是tabBar的页面,会出现页面样式错乱,数据不展示,打开的新窗口页部分出现js报错信息