mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 23:18:44 +08:00
Merge pull request #253 from Aqr-K/v2-main
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { FileItem } from '@/api/types'
|
import { FileItem } from '@/api/types'
|
||||||
import { VTreeview } from 'vuetify/labs/VTreeview'
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
root: {
|
root: {
|
||||||
|
|||||||
+5
-3
@@ -12,7 +12,6 @@ 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 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 +48,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 +64,10 @@ initializeApp().then(() => {
|
|||||||
.component('VMediaInfoCard', MediaInfoCard)
|
.component('VMediaInfoCard', MediaInfoCard)
|
||||||
.component('VTorrentCard', TorrentCard)
|
.component('VTorrentCard', TorrentCard)
|
||||||
.component('VMediaIdSelector', MediaIdSelector)
|
.component('VMediaIdSelector', MediaIdSelector)
|
||||||
.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