更新了1.03.2008270版本开发工具后,打开项目发现在开发工具模拟器中所有页面的标题都消失了,但是在手机中是正常,项目是用的Color-ui做的,
page.wxml
<cu-custom bgColor="bg-white">
<view slot="content">购物车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;
}
}
})
解决了吗
解决了,在project.config.json中将
"useApiHook": true
改为
"useApiHook": false
页面的json文件中定义了这个吗?
"navigationStyle": "custom"