mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix: 调整注册顺序,解决重复注册的警告
This commit is contained in:
+7
-3
@@ -12,7 +12,7 @@ import { isPWA } from './@core/utils/navigator'
|
|||||||
import './ace-config'
|
import './ace-config'
|
||||||
import { VAceEditor } from 'vue3-ace-editor'
|
import { VAceEditor } from 'vue3-ace-editor'
|
||||||
import { PerfectScrollbarPlugin } from 'vue3-perfect-scrollbar'
|
import { PerfectScrollbarPlugin } from 'vue3-perfect-scrollbar'
|
||||||
import { VTreeview } from 'vuetify/labs/VTreeview'
|
// import { VTreeview } from 'vuetify/labs/VTreeview'
|
||||||
import ToastPlugin from 'vue-toast-notification'
|
import ToastPlugin from 'vue-toast-notification'
|
||||||
import VuetifyUseDialog from 'vuetify-use-dialog'
|
import VuetifyUseDialog from 'vuetify-use-dialog'
|
||||||
import VueApexCharts from 'vue3-apexcharts'
|
import VueApexCharts from 'vue3-apexcharts'
|
||||||
@@ -49,6 +49,11 @@ async function initializeApp() {
|
|||||||
|
|
||||||
// 注册全局组件
|
// 注册全局组件
|
||||||
initializeApp().then(() => {
|
initializeApp().then(() => {
|
||||||
|
// 优先注册框架
|
||||||
|
app
|
||||||
|
.use(vuetify)
|
||||||
|
|
||||||
|
// 注册组件
|
||||||
app
|
app
|
||||||
.component('VAceEditor', VAceEditor)
|
.component('VAceEditor', VAceEditor)
|
||||||
.component('VApexChart', VueApexCharts)
|
.component('VApexChart', VueApexCharts)
|
||||||
@@ -60,12 +65,11 @@ initializeApp().then(() => {
|
|||||||
.component('VMediaInfoCard', MediaInfoCard)
|
.component('VMediaInfoCard', MediaInfoCard)
|
||||||
.component('VTorrentCard', TorrentCard)
|
.component('VTorrentCard', TorrentCard)
|
||||||
.component('VMediaIdSelector', MediaIdSelector)
|
.component('VMediaIdSelector', MediaIdSelector)
|
||||||
.component('VTreeview', VTreeview)
|
// .component('VTreeview', VTreeview)
|
||||||
.component('VPathField', PathField)
|
.component('VPathField', PathField)
|
||||||
|
|
||||||
// 注册插件
|
// 注册插件
|
||||||
app
|
app
|
||||||
.use(vuetify)
|
|
||||||
.use(router)
|
.use(router)
|
||||||
.use(store)
|
.use(store)
|
||||||
.use(ToastPlugin, {
|
.use(ToastPlugin, {
|
||||||
|
|||||||
Reference in New Issue
Block a user