perf: 优化分包预加载
This commit is contained in:
parent
5085098c9d
commit
78951cb380
@ -555,15 +555,10 @@
|
|||||||
],
|
],
|
||||||
"preloadRule": {
|
"preloadRule": {
|
||||||
"pages/main/home": {
|
"pages/main/home": {
|
||||||
"packages": ["pages/others"]
|
"packages": ["pages/others", "pages/addDeviceForBluetooth"]
|
||||||
},
|
},
|
||||||
"pages/main/lockDetail": {
|
"pages/main/lockDetail": {
|
||||||
"packages": [
|
"packages": ["pages/lockUserManage", "pages/featureForBluetooth", "pages/settingForBluetooth"]
|
||||||
"pages/lockUserManage",
|
|
||||||
"pages/featureForBluetooth",
|
|
||||||
"pages/settingForBluetooth",
|
|
||||||
"pages/addDeviceForBluetooth"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"pages/main/mine": {
|
"pages/main/mine": {
|
||||||
"packages": ["pages/user"]
|
"packages": ["pages/user"]
|
||||||
|
|||||||
@ -54,7 +54,7 @@ const request = config => {
|
|||||||
showCancel: false,
|
showCancel: false,
|
||||||
success() {
|
success() {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/home/home'
|
url: '/pages/main/home'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user