回退了,bug太多
[渲染层错误] inspectee DOM.querySelector error?新创建云开发官方默认模板,运行就这样了 [图片] [图片]
2022-09-07按照这个写法,能实现返回提醒,能监听到:安卓、IOS的左上角返回键,安卓的手势操作中的返回操作。但是IOS的左滑退出无法监听。
如何使用wx.enableAlertBeforeUnload根据参数控制展示?情景:当用户未保存数据退出页面时提示, 想法:默认激活wx.enableAlertBeforeUnload,通过参数判断控制展示隐藏。 疑问:wx.disableAlertBeforeUnload(),需要再哪里进行判断 [图片][图片]
2021-11-25[图片] 把这个关了,就不报这个提示了
控制台报错“possibly causing memory leak”- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo 请问下有人知道控制台这是什么错 [图片]
2021-11-19TypeError: eventChannel.on is not a function 怎么办
管理后报错:getOpenerEventChannel().on is not a function前一个版本在页面间传值时,采用的是将对象缓存在 app.js 中,然后在 onLoad() 中将其获取并设置为 null 的方式;在当前版本中,采用了依赖 EventChannel 进行传值的方式,但是管理后台出现大量报错,错误为 this.getOpenerEventChannel().on is not a function,本地开发工具和真机调试均无法复现该异常。 相关情况如下: 发布新版本时为全量发布;管理后台基本库最低设置为 2.7.3;报错页面无其它跳转进入途径; [图片] 相关代码如下: 第一个页面 toPrescription: function() { let that = this; util.checkUserState(-1, true, function (res) { let acceptData = { 'selectedMember': null } if (that.data.members.length > 0 && that.data.members[0].isSelf) { acceptData.selectedMember = that.data.members[0]; } wx.navigateTo({ url: '/pages/diagnosis/prescription/prescription', success: function (res) { // 通过eventChannel向被打开页面传送数据 res.eventChannel.emit('toPrescription', { data: acceptData }); } }); }); }, 第二个页面 onLoad: function(options) { let that = this; let eventChannel = this.getOpenerEventChannel(); // 监听事件,获取上一页面通过eventChannel传送到当前页面的数据 eventChannel.on('toPrescription', function (data) { let acceptData = data.data; if (acceptData && acceptData.selectedMember) { that.setData({ selectedMember: acceptData.selectedMember }); } }); }, 管理后台截图: [图片][图片]
2021-10-29出现这种问题是因为,自定义组件里,properties的属性的数据类型定义有问题,我的项目里在升级了基础库后出现这样的提示,我把属性的数据类型由Function改为了Object就好了
组件使用中,提示字段非法如何解决?VM474 WAService.js:2 [Component] the type of property "isCustom" is illegal (when preparing behavior "colorui/components/cu-custom"). (anonymous) @ VM474 WAService.js:2 i.safeCallback @ VM474 WAService.js:2 i.call @ VM474 WAService.js:2 i.triggerWarning @ VM474 WAService.js:2 u.prepare @ VM474 WAService.js:2 Hi @ VM474 WAService.js:2 Zi @ VM474 WAService.js:2 on @ VM474 WAService.js:2 (anonymous) @ VM474 WAService.js:2 (anonymous) @ VM474 WAService.js:2 O.App.Component @ index.js? [sm]:295 (anonymous) @ cu-custom.js? [sm]:2 require @ VM474 WAService.js:2 (anonymous) @ VM671:8394 doWhenAllScriptLoaded @ VM576:9689 scriptLoaded @ VM576:9717 (anonymous) @ VM576:9742 load (async) (anonymous) @ assubloader.js:1 V @ VM474 WAService.js:2 loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ VM576:9761 (anonymous) @ VM576:9767 loadScripts @ assubloader.js:1 async function (async) loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ VM572:1 t.loadScripts @ VM8 asdebug.js:1 loadAppService @ VM8 asdebug.js:1 messagerCallback @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 f @ VM8 asdebug.js:1 g @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 _ws.onmessage @ VM8 asdebug.js:1 VM474 WAService.js:2 [Component] the type of property "isBack" is illegal (when preparing behavior "colorui/components/cu-custom"). (anonymous) @ VM474 WAService.js:2 i.safeCallback @ VM474 WAService.js:2 i.call @ VM474 WAService.js:2 i.triggerWarning @ VM474 WAService.js:2 u.prepare @ VM474 WAService.js:2 Hi @ VM474 WAService.js:2 Zi @ VM474 WAService.js:2 on @ VM474 WAService.js:2 (anonymous) @ VM474 WAService.js:2 (anonymous) @ VM474 WAService.js:2 O.App.Component @ index.js? [sm]:295 (anonymous) @ cu-custom.js? [sm]:2 require @ VM474 WAService.js:2 (anonymous) @ VM671:8394 doWhenAllScriptLoaded @ VM576:9689 scriptLoaded @ VM576:9717 (anonymous) @ VM576:9742 load (async) (anonymous) @ assubloader.js:1 V @ VM474 WAService.js:2 loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ VM576:9761 (anonymous) @ VM576:9767 loadScripts @ assubloader.js:1 async function (async) loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ VM572:1 t.loadScripts @ VM8 asdebug.js:1 loadAppService @ VM8 asdebug.js:1 messagerCallback @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 f @ VM8 asdebug.js:1 g @ VM8 asdebug.js:1 (anonymous) @ VM8 asdebug.js:1 _ws.onmessage @ VM8 asdebug.js:1 [图片]
2021-10-28我更新了基础库,也出现了这个提示,把project.config.json中的 "autoAudits" 置为false就没有了
11 listeners of event AppRoute have bee?[图片] 11 listeners of event AppRoute have been added, possibly causing memory leak 11 listeners of event AppRoute have been added, possibly causing memory leak. 有人知道咋回事吗?
2021-10-28