1.在app.json
的声明subpackages
字段
{
"pages":[
"pages/index",
"pages/logs"
],
"subpackages":[
{
"root":"pagesA",//跟pages同层级
"pages":[
"home/index",
"my/index"
]
}
]
}
2.分包成功后的查看
3.跳转到分包页面
uni.navigateTo({
url: '/pagesA/promote/poster/index',
});