refactor(ui): break down config.html into smaller pieces (#2491)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
parent
81c2ecfc07
commit
4b6ff3797e
30 changed files with 1636 additions and 1081 deletions
13
src_assets/common/assets/web/init.js
Normal file
13
src_assets/common/assets/web/init.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import i18n from './locale'
|
||||
|
||||
export function initApp(app, config) {
|
||||
//Wait for locale initialization, then render
|
||||
i18n().then(i18n => {
|
||||
app.use(i18n);
|
||||
app.provide('i18n', i18n.global)
|
||||
app.mount('#app');
|
||||
if (config) {
|
||||
config(app)
|
||||
}
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue