locale中英文

This commit is contained in:
owenchen committed 2026-08-27 16:23:18 +08:00
1 parent 57fda355e6
commit 1e125254eb
3 files changed
+89 -6

No files matched your search

+4
View File
@@ -5,6 +5,7 @@ import App from "./App.vue";
import { setupStore } from "./store";
//使用了Top await
import { setupRouter } from "./router";
import { mergeDbLocaleMessages } from "./locales";
import {
setupAntd,
@@ -32,8 +33,11 @@ function setupPlugins() {
async function setupApp() {
// 挂载pinia状态管理
setupStore(app);
// 并行加载数据库 locale 表内容作为中英文翻译补充
const dbLocale = mergeDbLocaleMessages();
// 挂载路由
await setupRouter(app);
await dbLocale;
app.mount("#app");
}