mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
Merge branch 'v2' of https://github.com/jxxghp/MoviePilot-Frontend into v2
This commit is contained in:
@@ -75,7 +75,7 @@ const transferForm = reactive({
|
|||||||
doubanid: null,
|
doubanid: null,
|
||||||
season: null,
|
season: null,
|
||||||
type_name: '',
|
type_name: '',
|
||||||
transfer_type: 'copy',
|
transfer_type: '',
|
||||||
episode_format: '',
|
episode_format: '',
|
||||||
episode_detail: '',
|
episode_detail: '',
|
||||||
episode_part: '',
|
episode_part: '',
|
||||||
@@ -114,11 +114,19 @@ watch(
|
|||||||
const directory = directories.value.find(item => item.library_path === newPath)
|
const directory = directories.value.find(item => item.library_path === newPath)
|
||||||
if (directory) {
|
if (directory) {
|
||||||
transferForm.target_storage = directory.library_storage ?? 'local'
|
transferForm.target_storage = directory.library_storage ?? 'local'
|
||||||
transferForm.transfer_type = directory.transfer_type ?? ''
|
transferForm.transfer_type = transferForm.transfer_type || directory.transfer_type
|
||||||
transferForm.scrape = directory.scraping ?? false
|
transferForm.scrape = directory.scraping ?? false
|
||||||
transferForm.library_category_folder = directory.library_category_folder ?? false
|
transferForm.library_category_folder = directory.library_category_folder ?? false
|
||||||
transferForm.library_type_folder = directory.library_type_folder ?? false
|
transferForm.library_type_folder = directory.library_type_folder ?? false
|
||||||
|
} else {
|
||||||
|
transferForm.transfer_type = transferForm.transfer_type || 'copy'
|
||||||
|
transferForm.scrape = false
|
||||||
|
transferForm.library_category_folder = false
|
||||||
|
transferForm.library_type_folder = false
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// 路径为空时, 整理方式留空(自动)
|
||||||
|
transferForm.transfer_type = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -225,8 +233,11 @@ onMounted(() => {
|
|||||||
label="整理方式"
|
label="整理方式"
|
||||||
:items="transferTypeOptions"
|
:items="transferTypeOptions"
|
||||||
hint="文件操作整理方式"
|
hint="文件操作整理方式"
|
||||||
persistent-hint
|
persistent-hint>
|
||||||
/>
|
<template v-slot:selection="{ item }">
|
||||||
|
{{ transferForm.transfer_type === '' ? '自动' : item.title }}
|
||||||
|
</template>
|
||||||
|
</VSelect>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<VCombobox
|
<VCombobox
|
||||||
|
|||||||
@@ -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