解决了,在project.config.json中将 "useApiHook": true 改为 "useApiHook": false
1.03.2008270版本开发工具自定义cu-custom组件标题栏消失?更新了1.03.2008270版本开发工具后,打开项目发现在开发工具模拟器中所有页面的标题都消失了,但是在手机中是正常,项目是用的Color-ui做的, page.wxml
购物车view> cu-custom> --------------------------------------------------------------------------- app.json "usingComponents": { "cu-custom": "/colorui/components/cu-custom" }, ------------------------------------------------------------------------- app.js wx.getSystemInfo({ success: e => { this.globalData.StatusBar = e.statusBarHeight; let capsule = wx.getMenuButtonBoundingClientRect(); if (capsule) { this.globalData.Custom = capsule; this.globalData.CustomBar = capsule.bottom + capsule.top - e.statusBarHeight; } else { this.globalData.CustomBar = e.statusBarHeight + 50; } } }) 2020-09-05