分包问题
发布于 5 年前 作者 baili 10350 次浏览 来自 问答

https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/basic.html

 {
  "pages": [   
    "pages/login/login"    ,
    "pages/machineOperator/jobs/jobs",
    "pages/machineOperator/uncompletedJobsList/uncompletedJobsList",
    "pages/machineOperator/newJobToday/newJobToday",
    "pages/machineOperator/functionExpansionIndex/functionExpansionIndex"
  ],
  "tabBar": {
    "color""#356",
    "selectionedColor""#000",
    "backgroundColor":"#fff",
    "borderStyle""white",
    "list": [
      {
        "pagePath""pages/machineOperator/jobs/jobs",
        "iconPath""/pages/machineOperator/images/workQuery.jpg",
        "selectedIconPath""/pages/machineOperator/images/workQuerySelected.jpg",
        "text""历史任务"
      },
      {
        "pagePath""pages/machineOperator/uncompletedJobsList/uncompletedJobsList",
        "iconPath""/pages/machineOperator/images/dispatchM.jpg",
        "selectedIconPath""/pages/machineOperator/images/dispatchMSelected.jpg",
        "text""新派任务"
      },
      {
        "pagePath""pages/machineOperator/newJobToday/newJobToday",
        "iconPath""/pages/machineOperator/images/personalInformation.jpg",
        "selectedIconPath""/pages/machineOperator/images/personalInformationSelected.jpg",
        "text""今日任务",
        "dot":true
            },
      {
        "pagePath""pages/machineOperator/functionExpansionIndex/functionExpansionIndex",
        "iconPath""/pages/machineOperator/images/personalInformation.jpg",
        "selectedIconPath""/pages/machineOperator/images/personalInformationSelected.jpg",
        "text""功能扩展",
        "badge":"new"
      }
    ]
  },
  "window": {
    "backgroundTextStyle""light",
    "navigationBarBackgroundColor""#fff",
    "navigationBarTitleText""Weixin",
    "navigationBarTextStyle""black"
  },
  "subPackages": [
    {
      "root""page/systemManagerPackage/",
      "pages": [
        "pages/systemManager/systemManagerIndex/systemMangerIndex"
        
      ],
      "independent"true
    }
  ],
  "networkTimeout": {
    "request"10000,
    "connectSocket"10000,
    "uploadFile"10000,
    "downloadFile"10000
  },
  "debug"false,
  "sitemapLocation""sitemap.json"
}

 
3 回复

主包太大了吧

翻译一下就好了,应该意思是体积超过2M了

回到顶部