添加搜索时间间隔选项

This commit is contained in:
jxxghp
2025-09-02 11:48:24 +08:00
parent 08611a97e7
commit d6b5994e22
4 changed files with 35 additions and 3 deletions

View File

@@ -54,12 +54,20 @@ const rssIntervalItems = [
{ title: t('setting.subscribe.intervals.day1'), value: 1440 },
]
// 订阅搜索时间间隔选择项(小时)
const subscribeSearchIntervalItems = [
{ title: t('setting.subscribe.intervals.day1'), value: 24 },
{ title: t('setting.subscribe.intervals.day3'), value: 72 },
{ title: t('setting.subscribe.intervals.week1'), value: 168 },
]
// 系统设置项
const SystemSettings = ref<any>({
// 基础设置
Basic: {
SUBSCRIBE_MODE: 'auto',
SUBSCRIBE_SEARCH: false,
SUBSCRIBE_SEARCH_INTERVAL: 24,
SUBSCRIBE_RSS_INTERVAL: 30,
LOCAL_EXISTS_SEARCH: false,
},
@@ -252,6 +260,16 @@ onMounted(() => {
persistent-hint
/>
</VCol>
<VCol v-if="SystemSettings.Basic.SUBSCRIBE_SEARCH" cols="12" md="6">
<VSelect
v-model="SystemSettings.Basic.SUBSCRIBE_SEARCH_INTERVAL"
:items="subscribeSearchIntervalItems"
:label="t('setting.subscribe.searchInterval')"
:hint="t('setting.subscribe.searchIntervalHint')"
persistent-hint
prepend-inner-icon="mdi-timer"
/>
</VCol>
<VCol cols="12" md="6">
<VSwitch
v-model="SystemSettings.Basic.LOCAL_EXISTS_SEARCH"