Merge pull request #242 from wikrin/v2

This commit is contained in:
jxxghp
2024-11-21 14:00:17 +08:00
committed by GitHub
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ export interface Subscribe {
// 过滤规则组 // 过滤规则组
filter_groups?: string[] filter_groups?: string[]
// 下载器 // 下载器
downloader?: string downloader: string
} }
// 订阅分享 // 订阅分享
@@ -390,7 +390,7 @@ export interface Site {
// RSS地址 // RSS地址
rss?: string rss?: string
// 下载器 // 下载器
downloader?: string downloader: string
// Cookie // Cookie
cookie?: string cookie?: string
// ApiKey // ApiKey
+2 -1
View File
@@ -35,6 +35,7 @@ const siteForm = ref<Site>({
limit_seconds: 0, limit_seconds: 0,
name: '', name: '',
domain: '', domain: '',
downloader: '',
}) })
// 提示框 // 提示框
@@ -67,7 +68,7 @@ async function loadDownloaderSetting() {
try { try {
const downloaders: DownloaderConf[] = await api.get('download/clients') const downloaders: DownloaderConf[] = await api.get('download/clients')
downloaderOptions.value = [ downloaderOptions.value = [
{ title: '默认', value: null }, { title: '默认', value: '' },
...downloaders.map((item: { name: any }) => ({ ...downloaders.map((item: { name: any }) => ({
title: item.name, title: item.name,
value: item.name, value: item.name,
@@ -417,7 +417,7 @@ onMounted(() => {
v-model="subscribeForm.downloader" v-model="subscribeForm.downloader"
:items="downloaderOptions" :items="downloaderOptions"
label="下载器" label="下载器"
hint="指定该订阅使用的下载器,留空自动使用默认下载器" hint="指定该订阅使用的下载器"
persistent-hint persistent-hint
/> />
</VCol> </VCol>