fix: 适配多平台语言包加载逻辑,优化首屏渲染

调整语言包加载时机,区分H5和小程序/鸿蒙平台:
H5 remote-only模式下先await Lang.boot()再挂载Vue避免首屏raw key
小程序/鸿蒙平台同步注册App,Lang.boot()放到App.onLaunch异步执行不阻塞挂载
移除了无用的加载语言包错误日志注释
This commit is contained in:
2026-06-30 14:30:22 +08:00
parent de4314ec9b
commit 07c38c1b1b
2 changed files with 14 additions and 3 deletions

View File

@@ -528,7 +528,6 @@ function loadLangPackSync(lang, path) {
loadedLangPacks[`${lang}_${path}`] = langData;
return langData;
} catch (error) {
// console.error(`加载语言包 ${lang}/${path} 失败:`, error);
return {};
}
}