使用HbuilderX发行微信小程序
- 发布:2021-08-02 18:22
- 更新:2021-08-02 18:22
- 阅读:463
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10 pro 19042.868
HBuilderX类型: 正式
HBuilderX版本号: 3.1.13
第三方开发者工具版本号: stable 1.05.2107090
基础库版本号: 2.19.0
项目创建方式: HBuilderX
操作步骤:
预期结果:
"usingComponents": {
"bar": "../../components/bar",
"top-bar": "../../components/topTab",
"min-swiper": "../../components/minSwiper"
}
"usingComponents": {
"bar": "../../components/bar",
"top-bar": "../../components/topTab",
"min-swiper": "../../components/minSwiper"
}
实际结果:
"usingComponents": {
"bar": "..\..\components\bar",
"top-bar": "..\..\components\topTab",
"min-swiper": "..\..\components\minSwiper"
}
"usingComponents": {
"bar": "..\..\components\bar",
"top-bar": "..\..\components\topTab",
"min-swiper": "..\..\components\minSwiper"
}
bug描述:
小程序发行后页面组件路径配置那里的 / 全部变成了 \
导致页面报错Cannot read property '$vm' of undefined 以及找不到相关组件
0 个回复