app.js文件
{
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#d3cdb7",
"navigationBarTitleText": "花满蹊",
"navigationBarTextStyle": "black"
}
}
我的index.json文件
{
"usingComponents": {},
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#d3cdb7",
"navigationBarTitleText": "花满蹊",
"navigationBarTextStyle": "black"
}
}
自动生成的logs文件中的.json
{
"navigationBarTitleText": "查看启动日志",
"usingComponents": {}
}
可见原因是这样的:
- 页面的.json只能设置 window 相关的配置项,而无需写 window 这个键”!!!
index.json写出这样就好了
{
"usingComponents": {},
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#2c3f46",
"navigationBarTitleText": "花满蹊",
"navigationBarTextStyle": "white"
}