* 预加载关键模块
(locale: string)
| 243 | * 预加载关键模块 |
| 244 | */ |
| 245 | async preloadEssentials(locale: string): Promise<void> { |
| 246 | const essentials = [ |
| 247 | 'core/common', |
| 248 | 'core/navigation', |
| 249 | 'features/chat' |
| 250 | ]; |
| 251 | |
| 252 | await Promise.all( |
| 253 | essentials.map(module => this.loadModule(locale, module)) |
| 254 | ); |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * 清理缓存 |
nothing calls this directly
no test coverage detected