pages下面新增subpages,对应根目录要创建一个subpages文件夹

    1. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
    2. {
    3. ....
    4. }],
    5. "subPackages": [{
    6. "root": "subpages",
    7. "pages": [{
    8. "path": "news/news",
    9. "style": {
    10. "navigationBarTitleText": "新闻中心",
    11. "enablePullDownRefresh": false
    12. }
    13. }]
    14. }],

    image.png