当前位置:网站首页>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
边栏推荐
- 1. preliminary understanding of Express
- 2020-12-28
- CentOS installing MySQL and setting up remote access
- 4、 Js-es5-i / O
- Batch package and download Alibaba OSS files
- SQL injection question type (manual injection +sqlmap)
- Penetration problem (main directory, password explosion, database uploading Trojan horse)
- 5. Attribute selector
- 關於RSA加密解密原理
- I set up a blog
猜你喜欢

ADT Google browser plug-in ad Terminator

DIY无人机(匿名拓控者P2+F330机架)

Print an array clockwise

File upload question type

Centering problem - the width and height of child elements are known

array_ Pop error: only variables should be passed by reference

Buuctf web (VI)

Process and scheduled task management

SQL injection question type (manual injection +sqlmap)

Shellshock Attack Lab
随机推荐
How does jupyter notebook directly output the values of multiple variables after running?
Process and scheduled task management
How to save the video of wechat video number locally?
Replace jade engine with EJS
Differences among let, VaR and const when JS declares variables
On the use of visual studio
0. Quelques doutes au sujet de SolidWorks
Format_ String_ Server
JS gets the first month of the year, the second month to the last month, and the first day to the last day
GBase 8a磁盘问题及处理
Journal d'acquisition du faisceau de fichiers à Elk
Mongodb test case
À propos des principes de chiffrement et de décryptage RSA
How app inventor accesses resource files in assets directory
Docker installing MySQL local remote connection docker container MySQL
Buuctf web (IV)
Wrap dynamically created child elements in dynamically created structures
A solution to create a new EXCEL workbook on win10 computer and change the suffix to xlsm (normally it should be xlsx)
Buuctf web (III)
Dest0g3 520迎新賽