Open lily-white opened 6 years ago
1.新建subPages/pages,把除index外之外的文件移到该文件夹下 2.app.json里加入subPackages "subPackages": [ { "root": "subPages", "pages": [ "pages/newsdetail/newsdetail", "pages/save/save" ] } ] 3.引用路径更改为'../../subPages/pages/xx' 4.分包内资源加入到subPackages
1.新建subPages/pages,把除index外之外的文件移到该文件夹下 2.app.json里加入subPackages "subPackages": [ { "root": "subPages", "pages": [ "pages/newsdetail/newsdetail", "pages/save/save" ] } ] 3.引用路径更改为'../../subPages/pages/xx' 4.分包内资源加入到subPackages