mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 08:46:40 +08:00
fix(SubscribeEditDialog): 下载器字段更新默认值
This commit is contained in:
@@ -50,6 +50,7 @@ const subscribeForm = ref<Subscribe>({
|
|||||||
sites: [],
|
sites: [],
|
||||||
best_version: undefined,
|
best_version: undefined,
|
||||||
current_priority: 0,
|
current_priority: 0,
|
||||||
|
downloader: '',
|
||||||
date: '',
|
date: '',
|
||||||
show_edit_dialog: false,
|
show_edit_dialog: false,
|
||||||
})
|
})
|
||||||
@@ -65,7 +66,7 @@ async function loadDownloaderSetting() {
|
|||||||
const result: { [key: string]: any } = await api.get('system/setting/Downloaders')
|
const result: { [key: string]: any } = await api.get('system/setting/Downloaders')
|
||||||
const downloaders = result.data?.value ?? []
|
const downloaders = result.data?.value ?? []
|
||||||
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user