当前位置:网站首页>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
边栏推荐
- 天猫商品详情接口,天猫商品优惠券接口,天猫api接口,天猫价格监控接口,天猫比价接口,品牌维权接口,天猫销量api接口,接口代码可对接数据分析业务,品牌维权,比价业务,行业分析业务接口代码分享
- Taobao commodity sales interface / Taobao commodity sales monitoring interface / cumulative commodity sales interface
- Bidirectional retransmission step experiment
- Namespace in TS (1)
- Time and date processing in JS
- Three methods to make the scroll bar of div automatically scroll to the bottom
- GBase 8a V95与V86压缩策略类比
- Namespace in TS (2)
- 淘宝商品销量接口/淘宝商品销量监控接口/商品累计销量接口
- File upload question type
猜你喜欢

A solution to create a new EXCEL workbook on win10 computer and change the suffix to xlsm (normally it should be xlsx)

Yarn package management tool

redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.

redis. exceptions. ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.

DNS domain name resolution service

Sky background map, navigation page lovefanfan top

MySQL queries difference sets (missing data) by linking tables based on an associated field

Differences and uses among cookies, localstorage, sessionstorage, and application caching

Format_ String_ Server

4. Relationship selector (parent-child relationship, ancestor offspring relationship, brother relationship)
随机推荐
JS array using the reduce() method
Deploy Yum warehouse and NFS shared services
Custom exception class myexception
0.一些自己初学Solidworks的疑惑
Invalid flex layout setting width
5、 Constant, variable
SQL injection experiment
logstash配置参考文章
filebeat采集日志到ELK
Svg text stroke effect
À propos des principes de chiffrement et de décryptage RSA
LVM management exercise
Is signed or unsigned selected to create an integer field in MySQL? The answer is as follows:
Taobao commodity sales interface / Taobao commodity sales monitoring interface / cumulative commodity sales interface
Redis subscribe connection timeout interrupt problem solution
Notes on MySQL transaction not automatically submitting
When submitting the laravel admin form and using the required verification, an error is reported when the value is 0
Journal d'acquisition du faisceau de fichiers à Elk
Dest0g3 520迎新賽
Problems in the deconstruction and assignment of objects, comparison between empty strings and undefined