3***@qq.com
3***@qq.com
  • 发布:2024-09-18 16:00
  • 更新:2024-09-18 16:20
  • 阅读:43

编译成微信小程序之后,app.js缺少page

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 4.27

第三方开发者工具版本号: 1.06.2407120

基础库版本号: 3

项目创建方式: HBuilderX

示例代码:

{
"pages": [{
"path": "pages/Login/Login",
"style": {
"navigationStyle": "custom"
}
}, {
"path": "pages/index/Staging",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/index/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/index/MyInformation",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/index/branch/FaultReporting",
"style": {
"navigationBarTitleText": "故障上报"
}
},
{
"path": "pages/index/branch/DailyInspection",
"style": {
"navigationBarTitleText": "日常巡检"
}
},
{
"path": "pages/index/branch/SelfInspectionReport",
"style": {
"navigationBarTitleText": "自检上报"
}
},
{
"path": "pages/index/branch/FileManagement",
"style": {
"navigationBarTitleText": "文档管理"
}
},
{
"path": "pages/index/branch/MaintenanceBacklog",
"style": {
"navigationBarTitleText": "维修工单"
}
},
{
"path": "pages/index/branch/MaintenanceReport",
"style": {
"navigationBarTitleText": "保养上报"
}
},
{
"path": "pages/index/branch/StatisticalReport",
"style": {
"navigationBarTitleText": "统计报表"
}
},
{
"path": "pages/index/branch/MyWorkOrder",
"style": {
"navigationBarTitleText": "我的工单"
}
},
{
"path": "pages/index/branch/WorkOrderDetails",
"style": {
"navigationBarTitleText": "工单详情"
}
},
{
"path": "pages/index/branch/MyInspection",
"style": {
"navigationBarTitleText": "我的巡检"
}
},
{
"path": "pages/index/branch/DailyInspectionDetails",
"style": {
"navigationBarTitleText": "日常巡检详情"
}
},
{
"path": "pages/index/branch/WorkOrderDetailsCreate",
"style": {
"navigationBarTitleText": "工单详情"
}
}
],
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/img/tableBar_home.png",
"selectedIconPath": "static/img/tableBar_home_active.png"
},
{
"pagePath": "pages/index/Staging",
"text": "工作台",
"iconPath": "static/img/tableBar_work.png",
"selectedIconPath": "static/img/tableBar_work_active.png"
},
{
"pagePath": "pages/index/MyInformation",
"text": "我的",
"iconPath": "static/img/tableBar_user.png",
"selectedIconPath": "static/img/tableBar_user_active.png"
}
]
}
}

操作步骤:

预期结果:

实际结果:

bug描述:

uniapp编译成微信小程序之后,app.js缺少page

2024-09-18 16:00 负责人:无 分享
已邀请:
BeardYound

BeardYound

这种一般都是有报错导致的,你先运行到浏览器看下啥错误

  • 3***@qq.com (作者)

    项目是可以正常操作并且没有看到有报错的

    2024-09-18 16:08

DCloud_UNI_yuhe

DCloud_UNI_yuhe

这应该是还没有加载成功,你刷新一下,多等一会

如果不行,把热重载关闭了,之后再试试

  • 3***@qq.com (作者)

    我打开app.json文件看了一下,确实没有page属性

    2024-09-18 16:30

  • 3***@qq.com (作者)

    热重载我也一直没有开

    2024-09-18 16:30

  • DCloud_UNI_yuhe

    回复 3***@qq.com: 关了重新再打开试试,不行在拿AI检查一下page.json这个文件夹是不是有错误

    2024-09-18 16:39

  • 3***@qq.com (作者)

    回复 DCloud_UNI_yuhe: 一直都没有打开这个热重载,然后我也检测过了,没有什么问题,之前上午还是可以打包的,现在下午就打包不了了

    2024-09-18 16:41

  • 3***@qq.com (作者)

    回复 DCloud_UNI_yuhe: 我不是上传附件了吗,您有空帮忙打开看看

    2024-09-18 16:43

  • DCloud_UNI_yuhe

    回复 3***@qq.com: 您上传的附件打不开,这种情况肯定不是uniapp的bug,要是uniapp的bug开发者早就炸了

    2024-09-18 16:49

  • 3***@qq.com (作者)

    回复 DCloud_UNI_yuhe: 文件可能是被加密了,那会是啥问题啊

    2024-09-18 16:51

  • 3***@qq.com (作者)

    回复 DCloud_UNI_yuhe: 你看看我上传的代码有什么问题吗?

    2024-09-18 16:52

要回复问题请先登录注册