mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2026-04-23 10:44:25 +08:00
Merge branch 'main' into example
This commit is contained in:
@@ -8,9 +8,10 @@ import {
|
||||
setupNProgress,
|
||||
setupProNaiveComponents
|
||||
} from './plugins';
|
||||
import { setupVueRootValidator } from 'vite-plugin-vue-transition-root-validator/client';
|
||||
import { setupStore } from './store';
|
||||
import { setupRouter } from './router';
|
||||
import { setupI18n } from './locales';
|
||||
import { getLocale, setupI18n } from './locales';
|
||||
import App from './App.vue';
|
||||
|
||||
async function setupApp() {
|
||||
@@ -34,6 +35,10 @@ async function setupApp() {
|
||||
|
||||
setupAppVersionNotification();
|
||||
|
||||
setupVueRootValidator(app, {
|
||||
lang: getLocale() === 'zh-CN' ? 'zh' : 'en'
|
||||
});
|
||||
|
||||
app.mount('#app');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user