From f906a172dd191275a15ce1fdfce1ed0519e35d9a Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 23 Oct 2024 11:34:09 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E7=9B=AE=E5=BD=95=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E5=8F=AF=E9=80=89=E7=9B=91=E6=8E=A7=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types.ts | 2 ++ src/components/cards/DirectoryCard.vue | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/api/types.ts b/src/api/types.ts index 7ecea116..fa717550 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -1042,6 +1042,8 @@ export interface TransferDirectoryConf { download_category_folder?: boolean // 监控方式 downloader/monitor,None为不监控 monitor_type?: string + // 监控模式 fast/compatibility + monitor_mode?: string // 整理方式 move/copy/link/softlink transfer_type?: string // 文件覆盖模式 always/size/never/latest diff --git a/src/components/cards/DirectoryCard.vue b/src/components/cards/DirectoryCard.vue index e95bdb6d..db7b7580 100644 --- a/src/components/cards/DirectoryCard.vue +++ b/src/components/cards/DirectoryCard.vue @@ -48,6 +48,12 @@ const transferSourceItems = [ { title: '目录监控', value: 'monitor' }, ] +// 监控模式下拉字典 +const MonitorModeItems = [ + { title: '性能模式', value: 'fast' }, + { title: '兼容模式', value: 'compatibility' }, +] + // 整理方式下拉字典 const transferTypeItems = ref<{ title: string; value: string }[]>([]) @@ -236,6 +242,14 @@ watch( + + +