1
This commit is contained in:
@@ -64,9 +64,11 @@ export default defineAppConfig({
|
||||
],
|
||||
|
||||
"preloadRule": {
|
||||
"home_pages/index": {
|
||||
"packages": ["publish_pages", 'order_pages', 'user_pages', 'other_pages'],
|
||||
"network": "all" // wifi/all
|
||||
// 移除首屏预加载,所有子包改为按需加载,提升启动速度
|
||||
// 如果需要,可以在 main_pages/index 加载后再预加载常用包
|
||||
"main_pages/index": {
|
||||
"packages": ["publish_pages"], // 只预加载最常用的发布页面
|
||||
"network": "all"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user