当前位置:网站首页>Uni app subcontracting loading and optimization
Uni app subcontracting loading and optimization
2022-06-13 08:44:00 【Dependency_ Lai】
Document organization :
pages.json To configure :
{
"pages": [ //pages The first item in the array represents the application startup page
{
"path": "pages/index/Index",
"style": {
"navigationBarTitleText": " Supply platform ",
"navigationBarBackgroundColor": "#1C74BE",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
}
],
// Subcontract load configuration
"subPackages": [
// Business side
{
"root": "pages-merchants",// root directory
"pages": [{
"path": "pages/home/Home",// The relative path under the root directory
"style": {
"navigationBarTitleText": " Supply platform ",
"navigationBarBackgroundColor": "#1C74BE",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
}
//...
]
},
// Warehouse side
{
"root": "pages-warehouse",// root directory
"pages": [{
"path": "pages/login/Login",// The relative path under the root directory
"style": {
"navigationBarTitleText": " Sign in ",
"navigationBarBackgroundColor": "#1C74BE",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
},
{
"path": "pages/home/Home",// The relative path under the root directory
"style": {
"navigationBarTitleText": " Supply platform ",
"navigationBarBackgroundColor": "#1C74BE",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
},
//...
]
}
],
// Subcontract preload configuration
"preloadRule": {
"pages-merchants/pages/home/Home": {
// When rendering pages-merchants/pages/home/Home Load subpackages on
"network": "all",
"packages": ["pages-merchants"]
},
"pages-warehouse/pages/login/Login": {
// When rendering pages-warehouse/pages/login/Login Load subpackages on
"network": "all",
"packages": ["pages-warehouse"]
}
},
"easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"condition": {
// Mode configuration , Effective during development only
"current": 0, // Currently active mode (list Index entry for )
"list": [{
"name": "", // Schema name
"path": "", // Launch page , Mandatory
"query": "" // Launch parameters , On page onLoad In the function, we get
}]
}
}
stay manifest.json Add subcontracting optimization in
Reference resources : https://blog.csdn.net/xiyunmengyuan/article/details/105409779
边栏推荐
- Dest0g3 520 orientation
- Disk management and disk partition operation
- Centering problem - the width and height of child elements are known
- filebeat采集日志到ELK
- Mobile terminal development I: basic concepts
- Time and date processing in JS
- On the use of regular expressions (bracket problem)
- A solution to create a new EXCEL workbook on win10 computer and change the suffix to xlsm (normally it should be xlsx)
- GBase 8a磁盘问题及处理
- Redis subscribe connection timeout interrupt problem solution
猜你喜欢
[notes] like the solution to the problem of slow query (index + explicitly specifying query fields)
Guidance process and service control
Buffer Overflow Vulnerability Lab
4、 Js-es5-i / O
Container concept and cloud native
WARNING:tornado.access:404 GET /favicon.ico (172.16.8.1) 1.84ms [附静态文件设置]
MySQL queries difference sets (missing data) by linking tables based on an associated field
redis
JS - for cycle case: Horse grain
5. Attribute selector
随机推荐
WARNING:tornado.access:404 GET /favicon.ico (172.16.8.1) 1.84ms [附静态文件设置]
In order to resist the flood, the soldiers have been fighting for 89 hours. How many days and hours are there in total?
logstash配置参考文章
Pop component submission success failure animation
Dest0g3 520 orientation
JS - for cycle case: Horse grain
Buuctf web (VI)
Tiktok keyword search list interface, ultra detailed interface docking steps
Emotion handling skills
【Pycharm踩坑记录】配置远程运行后提示,[Errno 2] No such file or directory
SQL injection question type (manual injection +sqlmap)
Mongodb test case
CentOS installing MySQL and setting up remote access
情绪处理技巧
Document contains question type
JS - print 99 multiplication table of the for cycle case
anaconda下安装pytorch
JS gets the first month of the year, the second month to the last month, and the first day to the last day
SQL injection experiment
Disk management and disk partition operation