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": { "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"]

View File

@ -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'
}) })
} }
}) })