分包加载页面跳转
目录:
src: subpages: pages: a pages: b |
app.json
"pages/b/b" , ], "subPackages" : [ { "root" : "subpages/" , "pages" : [ "pages/a/a" , ] } ] |
} |
在b页面,有如下代码
wx.navigateTo({ url: `/pages/a/a`, }); |
报错了,
VM69801:1 navigateTo:fail url “pages/a/a” is not in app.json
请问,分包加载的页面不是这么跳转的吗?