mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
fix(build): ensure app is mounted after global settings are loaded
This commit is contained in:
+46
-44
@@ -44,49 +44,51 @@ async function initializeApp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 注册全局组件
|
// 注册全局组件
|
||||||
app
|
initializeApp().then(() => {
|
||||||
.component('VAceEditor', VAceEditor)
|
app
|
||||||
.component('VApexChart', VueApexCharts)
|
.component('VAceEditor', VAceEditor)
|
||||||
.component('VDialogCloseBtn', DialogCloseBtn)
|
.component('VApexChart', VueApexCharts)
|
||||||
.component('VMediaCard', MediaCard)
|
.component('VDialogCloseBtn', DialogCloseBtn)
|
||||||
.component('VPosterCard', PosterCard)
|
.component('VMediaCard', MediaCard)
|
||||||
.component('VBackdropCard', BackdropCard)
|
.component('VPosterCard', PosterCard)
|
||||||
.component('VPersonCard', PersonCard)
|
.component('VBackdropCard', BackdropCard)
|
||||||
.component('VMediaInfoCard', MediaInfoCard)
|
.component('VPersonCard', PersonCard)
|
||||||
.component('VTorrentCard', TorrentCard)
|
.component('VMediaInfoCard', MediaInfoCard)
|
||||||
.component('VMediaIdSelector', MediaIdSelector)
|
.component('VTorrentCard', TorrentCard)
|
||||||
.component('VTreeview', VTreeview)
|
.component('VMediaIdSelector', MediaIdSelector)
|
||||||
.component('VPathField', PathField)
|
.component('VTreeview', VTreeview)
|
||||||
|
.component('VPathField', PathField)
|
||||||
|
|
||||||
// 注册插件
|
// 注册插件
|
||||||
app
|
app
|
||||||
.use(vuetify)
|
.use(vuetify)
|
||||||
.use(router)
|
.use(router)
|
||||||
.use(store)
|
.use(store)
|
||||||
.use(ToastPlugin, {
|
.use(ToastPlugin, {
|
||||||
position: 'bottom-right',
|
position: 'bottom-right',
|
||||||
})
|
})
|
||||||
.use(VuetifyUseDialog, {
|
.use(VuetifyUseDialog, {
|
||||||
confirmDialog: {
|
confirmDialog: {
|
||||||
dialogProps: {
|
dialogProps: {
|
||||||
maxWidth: '40rem',
|
maxWidth: '40rem',
|
||||||
|
},
|
||||||
|
confirmationButtonProps: {
|
||||||
|
variant: 'elevated',
|
||||||
|
color: 'primary',
|
||||||
|
class: 'me-3 px-5',
|
||||||
|
'prepend-icon': 'mdi-check',
|
||||||
|
},
|
||||||
|
cancellationButtonProps: {
|
||||||
|
variant: 'outlined',
|
||||||
|
color: 'secondary',
|
||||||
|
class: 'me-3',
|
||||||
|
},
|
||||||
|
confirmationText: '确认',
|
||||||
|
cancellationText: '取消',
|
||||||
},
|
},
|
||||||
confirmationButtonProps: {
|
})
|
||||||
variant: 'elevated',
|
.use(PerfectScrollbarPlugin)
|
||||||
color: 'primary',
|
.use(VueApexCharts)
|
||||||
class: 'me-3 px-5',
|
.mount('#app')
|
||||||
'prepend-icon': 'mdi-check',
|
.$nextTick(() => removeEl('#loading-bg'))
|
||||||
},
|
})
|
||||||
cancellationButtonProps: {
|
|
||||||
variant: 'outlined',
|
|
||||||
color: 'secondary',
|
|
||||||
class: 'me-3',
|
|
||||||
},
|
|
||||||
confirmationText: '确认',
|
|
||||||
cancellationText: '取消',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.use(PerfectScrollbarPlugin)
|
|
||||||
.use(VueApexCharts)
|
|
||||||
.mount('#app')
|
|
||||||
.$nextTick(() => removeEl('#loading-bg'))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user