差量更新
- 发布:2020-11-21 15:26
- 更新:2020-12-02 12:50
- 阅读:557
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX版本号: 2.9.8
操作步骤:
预期结果:
1
1
实际结果:
我在页面中使用了自定义toast,问题来了,差量更新会导致找不到ref里的open方法
我在页面中使用了自定义toast,问题来了,差量更新会导致找不到ref里的open方法
bug描述:
15:23:58.374 TypeError: Cannot read property 'open' of undefined
15:23:59.248 [JS Framework] Failed to find taskCenter (140).
15:23:59.271 TypeError: plus.weexBridge.exec is not a function
onBackPress(e) {
// #ifdef APP-PLUS
var curSecond = (new Date).getSeconds();
if (Math.abs(curSecond - this.backSecond) > 2) {
this.backSecond = curSecond;
this.$nextTick(() => {
this.$showToast('再按一次退出APP');
});
} else {
plus.runtime.quit();
}
return true;
// #endif
},
我在页面中使用了自定义toast,问题来了,差量更新会导致找不到ref里的open方法
重新启用app是没有问题的
1 个回复
choin (作者)
这不是问题吗?
每次保存之后,puls就失效了