- 在uni-app项目中
- 右键pages, 选择新建页面
- 查看pages.json
- 发布:2021-01-15 14:51
- 更新:2021-01-15 14:51
- 阅读:1102
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 企业版 19042
HBuilderX版本号: 3.0.5
操作步骤:
预期结果:
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "DavidChen"
}
},
{
"path": "pages/message/message",
"style": {
"navigationBarTitleText": "消息页"
}
},
{
"path" : "dd/dd",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "DavidChen"
}
},
{
"path": "pages/message/message",
"style": {
"navigationBarTitleText": "消息页"
}
},
{
"path" : "dd/dd",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
实际结果:
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "DavidChen"
}
},
{
"path": "pages/message/message",
"style": {
"navigationBarTitleText": "消息页"
}
}
,{
"path" : "dd/dd",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "DavidChen"
}
},
{
"path": "pages/message/message",
"style": {
"navigationBarTitleText": "消息页"
}
}
,{
"path" : "dd/dd",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
bug描述:
在uni-app项目中, 如果我右键使用新建页面, 那么他创建出来对应页面后, 在pages.json中的pages对象中, 对齐问题就出现了, 情况如下图
不知道是不是因为我在设置选项中有设置tabsize的距离为2
就是出现了这么个情况
望帮助
-- 具体问题情况请看附件, 下面的预期结果与实际结果不准