diff --git a/src/api/types.ts b/src/api/types.ts index 5aad5a3e..b844d4fa 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -73,7 +73,7 @@ export interface Subscribe { // 过滤规则组 filter_groups?: string[] // 下载器 - downloader?: string + downloader: string } // 订阅分享 @@ -390,7 +390,7 @@ export interface Site { // RSS地址 rss?: string // 下载器 - downloader?: string + downloader: string // Cookie cookie?: string // ApiKey diff --git a/src/components/dialog/SiteAddEditDialog.vue b/src/components/dialog/SiteAddEditDialog.vue index f3330cde..2405551a 100644 --- a/src/components/dialog/SiteAddEditDialog.vue +++ b/src/components/dialog/SiteAddEditDialog.vue @@ -35,6 +35,7 @@ const siteForm = ref({ limit_seconds: 0, name: '', domain: '', + downloader: '', }) // 提示框 @@ -67,7 +68,7 @@ async function loadDownloaderSetting() { try { const downloaders: DownloaderConf[] = await api.get('download/clients') downloaderOptions.value = [ - { title: '默认', value: null }, + { title: '默认', value: '' }, ...downloaders.map((item: { name: any }) => ({ title: item.name, value: item.name, diff --git a/src/components/dialog/SubscribeEditDialog.vue b/src/components/dialog/SubscribeEditDialog.vue index 0a6755cf..5cc1271a 100644 --- a/src/components/dialog/SubscribeEditDialog.vue +++ b/src/components/dialog/SubscribeEditDialog.vue @@ -417,7 +417,7 @@ onMounted(() => { v-model="subscribeForm.downloader" :items="downloaderOptions" label="下载器" - hint="指定该订阅使用的下载器,留空自动使用默认下载器" + hint="指定该订阅使用的下载器" persistent-hint />