rsscard filter option

This commit is contained in:
jxxghp
2023-08-12 18:40:08 +08:00
parent fdf167b5d6
commit c04d5766dc
3 changed files with 30 additions and 6 deletions

View File

@@ -884,6 +884,8 @@ export interface Rss {
best_version?: number
// 是否使用代理服务器
proxy?: number
// 是否使用过滤规则
filter?: boolean
// 保存路径
save_path?: string
// 已处理数量

View File

@@ -70,9 +70,11 @@ const rssForm = reactive({
// 排除
exclude: props.media?.exclude,
// 洗版
best_version: props.media?.best_version,
best_version: !!props.media?.best_version,
// 是否使用代理服务器
proxy: props.media?.proxy,
proxy: !!props.media?.proxy,
// 是否使用过滤规则
filter: !!props.media?.filter,
// 保存路径
save_path: props.media?.save_path,
// 状态 0-停用1-启用
@@ -491,7 +493,7 @@ onMounted(() => {
<VRow>
<VCol
cols="12"
md="6"
md="4"
>
<VSwitch
v-model="rssForm.best_version"
@@ -500,13 +502,22 @@ onMounted(() => {
</VCol>
<VCol
cols="12"
md="6"
md="4"
>
<VSwitch
v-model="rssForm.proxy"
label="代理服务器"
/>
</VCol>
<VCol
cols="12"
md="4"
>
<VSwitch
v-model="rssForm.filter"
label="过滤规则"
/>
</VCol>
</VRow>
</VForm>
</VCardText>

View File

@@ -42,6 +42,8 @@ const rssForm = reactive({
best_version: false,
// 是否使用代理服务器
proxy: false,
// 是否使用过滤规则
filter: true,
// 保存路径
save_path: '',
// 状态 0-停用1-启用
@@ -276,7 +278,7 @@ function onRefresh() {
<VRow>
<VCol
cols="12"
md="6"
md="4"
>
<VSwitch
v-model="rssForm.best_version"
@@ -285,13 +287,22 @@ function onRefresh() {
</VCol>
<VCol
cols="12"
md="6"
md="4"
>
<VSwitch
v-model="rssForm.proxy"
label="代理服务器"
/>
</VCol>
<VCol
cols="12"
md="4"
>
<VSwitch
v-model="rssForm.filter"
label="过滤规则"
/>
</VCol>
</VRow>
</VForm>
</VCardText>