fix(SubscribeEditDialog): 下载器字段更新默认值

This commit is contained in:
jxxghp
2024-11-20 08:26:07 +08:00
parent 5a647fabfa
commit 462742961a
@@ -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,