feat 目录监控可选监控模式

This commit is contained in:
thsrite
2024-10-23 11:34:09 +08:00
parent 6b9c74dcea
commit f906a172dd
2 changed files with 16 additions and 0 deletions

View File

@@ -1042,6 +1042,8 @@ export interface TransferDirectoryConf {
download_category_folder?: boolean
// 监控方式 downloader/monitorNone为不监控
monitor_type?: string
// 监控模式 fast/compatibility
monitor_mode?: string
// 整理方式 move/copy/link/softlink
transfer_type?: string
// 文件覆盖模式 always/size/never/latest

View File

@@ -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(
</VCol>
</VRow>
<VRow v-if="$props.directory.monitor_type">
<VCol cols="12" v-if="$props.directory.monitor_type == 'monitor'">
<VSelect
v-model="props.directory.monitor_mode"
variant="underlined"
:items="MonitorModeItems"
label="监控模式"
/>
</VCol>
<VCol cols="4">
<VSelect
v-model="props.directory.library_storage"