mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 08:06:43 +08:00
fix(build): ensure app is mounted after global settings are loaded
This commit is contained in:
+5
-3
@@ -44,7 +44,8 @@ async function initializeApp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 注册全局组件
|
// 注册全局组件
|
||||||
app
|
initializeApp().then(() => {
|
||||||
|
app
|
||||||
.component('VAceEditor', VAceEditor)
|
.component('VAceEditor', VAceEditor)
|
||||||
.component('VApexChart', VueApexCharts)
|
.component('VApexChart', VueApexCharts)
|
||||||
.component('VDialogCloseBtn', DialogCloseBtn)
|
.component('VDialogCloseBtn', DialogCloseBtn)
|
||||||
@@ -58,8 +59,8 @@ app
|
|||||||
.component('VTreeview', VTreeview)
|
.component('VTreeview', VTreeview)
|
||||||
.component('VPathField', PathField)
|
.component('VPathField', PathField)
|
||||||
|
|
||||||
// 注册插件
|
// 注册插件
|
||||||
app
|
app
|
||||||
.use(vuetify)
|
.use(vuetify)
|
||||||
.use(router)
|
.use(router)
|
||||||
.use(store)
|
.use(store)
|
||||||
@@ -90,3 +91,4 @@ app
|
|||||||
.use(VueApexCharts)
|
.use(VueApexCharts)
|
||||||
.mount('#app')
|
.mount('#app')
|
||||||
.$nextTick(() => removeEl('#loading-bg'))
|
.$nextTick(() => removeEl('#loading-bg'))
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user