This commit is contained in:
张成
2025-11-16 09:53:24 +08:00
parent 6f4900eb0b
commit ad971796ba
8 changed files with 143 additions and 64 deletions

View File

@@ -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"
}
},