运行到小程序模拟器,自动打开小程序开发端

- 发布:2023-06-21 09:00
- 更新:2023-06-21 11:59
- 阅读:206
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 专业版22H2
HBuilderX类型: 正式
HBuilderX版本号: 3.8.4
第三方开发者工具版本号: 3.8.4.20230531
基础库版本号: 3.8.4.20230531
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常显示内容
正常显示内容
实际结果:
图片文件未找到
图片文件未找到
bug描述:
在HBuiderX开发时assets中有文件
每一次运行时出现BUG,
[ app.json 文件内容错误] app.json: ["tabBar"]["list"][0]["iconPath"]: "assets/首页.png" 未找到
["tabBar"]["list"][0]["selectedIconPath"]: "assets/首页 (1).png" 未找到
["tabBar"]["list"][1]["iconPath"]: "assets/课程表.png" 未找到
["tabBar"]["list"][1]["selectedIconPath"]: "assets/课程表 (1).png" 未找到
["tabBar"]["list"][2]["iconPath"]: "assets/我的.png" 未找到

亦春亦秋 - 用爱发电
"tabBar": {
"color": "#000",
"selectedColor": "#3ab52d",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/tabbar/index.png",
"selectedIconPath": "static/tabbar/index-t.png",
"text": "首页"
}, {
"pagePath": "pages/order/order",
"iconPath": "static/tabbar/order.png",
"selectedIconPath": "static/tabbar/order-t.png",
"text": "列表"
}, {
"pagePath": "pages/record/record",
"iconPath": "static/tabbar/record.png",
"selectedIconPath": "static/tabbar/record-t.png",
"text": "记录"
}]
},
你对比一下,不知道你具体的代码
1.注意图片名称尽量不要用中文
- 注意路径
1***@qq.com (作者)
好的,谢谢,处理了
2023-06-21 14:44
喜欢技术的前端
回复 1***@qq.com: 不客气
2023-06-21 14:47