feat(subscribe): 添加下载器选项到订阅设置

This commit is contained in:
jxxghp
2024-11-16 08:59:49 +08:00
parent 58fbaaa8f4
commit 414fb8afd1
3 changed files with 49 additions and 13 deletions

View File

@@ -67,10 +67,13 @@ async function loadDownloaderSetting() {
try {
const result: { [key: string]: any } = await api.get('system/setting/Downloaders')
const downloaders = result.data?.value ?? []
downloaderOptions.value = [{ title: '默认下载器', value: null }, ...downloaders.map((item: { name: any }) => ({
title: item.name,
value: item.name,
}))]
downloaderOptions.value = [
{ title: '默认', value: null },
...downloaders.map((item: { name: any }) => ({
title: item.name,
value: item.name,
})),
]
} catch (error) {
console.error('加载下载器设置失败:', error)
}