perf: 优化分包预加载

This commit is contained in:
范鹏 2025-03-27 17:08:26 +08:00
parent 5085098c9d
commit 78951cb380
2 changed files with 3 additions and 8 deletions

View File

@ -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"]

View File

@ -54,7 +54,7 @@ const request = config => {
showCancel: false,
success() {
uni.reLaunch({
url: '/pages/home/home'
url: '/pages/main/home'
})
}
})