Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dialog): 站点下载器字段修改默认值 #242

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface Subscribe {
// 过滤规则组
filter_groups?: string[]
// 下载器
downloader?: string
downloader: string
}

// 订阅分享
Expand Down Expand Up @@ -390,7 +390,7 @@ export interface Site {
// RSS地址
rss?: string
// 下载器
downloader?: string
downloader: string
// Cookie
cookie?: string
// ApiKey
Expand Down
3 changes: 2 additions & 1 deletion src/components/dialog/SiteAddEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const siteForm = ref<Site>({
limit_seconds: 0,
name: '',
domain: '',
downloader: '',
})

// 提示框
Expand Down Expand Up @@ -68,7 +69,7 @@ async function loadDownloaderSetting() {
const result: { [key: string]: any } = await api.get('system/setting/Downloaders')
const downloaders = result.data?.value ?? []
downloaderOptions.value = [
{ title: '默认', value: null },
{ title: '默认', value: '' },
...downloaders.map((item: { name: any }) => ({
title: item.name,
value: item.name,
Expand Down
2 changes: 1 addition & 1 deletion src/components/dialog/SubscribeEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ onMounted(() => {
v-model="subscribeForm.downloader"
:items="downloaderOptions"
label="下载器"
hint="指定该订阅使用的下载器,留空自动使用默认下载器"
hint="指定该订阅使用的下载器"
persistent-hint
/>
</VCol>
Expand Down