当前位置:网站首页>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
边栏推荐
- 0.一些自己初学Solidworks的疑惑
- Batch package and download Alibaba OSS files
- [notes] like the solution to the problem of slow query (index + explicitly specifying query fields)
- Guidance process and service control
- JS - for cycle case: Horse grain
- JS array using the reduce() method
- JS - simple ATM of the for cycle case
- Remote access and control
- 浅析Visual Studio 使用
- centos 安装mysql及设置远程访问
猜你喜欢
Use of addeventlistener in JS
VI editor
anaconda下安装pytorch
File upload question type
Wechat upload picture material interface
[pychart pit stepping record] prompt after configuring remote operation, [errno 2] no such file or directory
JS - simple ATM of the for cycle case
Process and scheduled task management
Buuctf web (IV)
Centering problem - the width and height of child elements are known
随机推荐
Taobao commodity historical price interface / commodity historical price trend interface code docking and sharing
Logstash configuration reference article
4. Relationship selector (parent-child relationship, ancestor offspring relationship, brother relationship)
In order to resist the flood, the soldiers have been fighting for 89 hours. How many days and hours are there in total?
Call to undefined function think\captcha\imagettftext()
JS - simple ATM of the for cycle case
ADT Google browser plug-in ad Terminator
LVM management exercise
d3.js&nvd3. JS - how to set the y-axis range - d3 js & nvd3. js — How to set y-axis range
JS - set countdown for Date object case
System safety and Application
Buuctf web (VII)
Explanation of JS event loop mechanism and asynchronous tasks
WARNING:tornado.access:404 GET /favicon.ico (172.16.8.1) 1.84ms [附静态文件设置]
Dest0g3 520迎新賽
Sky background map, navigation page lovefanfan top
Buuctf web (III)
Mobile terminal development I: basic concepts
8、 JS data type conversion
Input prohibit copy and paste