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