mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-09 22:42:21 +08:00
fix RuleGroupCard
This commit is contained in:
@@ -47,10 +47,10 @@ const groupInfoDialog = ref(false)
|
|||||||
|
|
||||||
// 规则详情
|
// 规则详情
|
||||||
const groupInfo = ref<FilterRuleGroup>({
|
const groupInfo = ref<FilterRuleGroup>({
|
||||||
name: '',
|
name: props.group?.name,
|
||||||
rule_string: '',
|
rule_string: props.group?.rule_string,
|
||||||
media_type: '',
|
media_type: props.group?.media_type,
|
||||||
category: '',
|
category: props.group?.category,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 规则组名称
|
// 规则组名称
|
||||||
@@ -65,7 +65,6 @@ const mediaTypeItems = [
|
|||||||
|
|
||||||
// 根据选中的媒体类型,获取对应的媒体类别
|
// 根据选中的媒体类型,获取对应的媒体类别
|
||||||
const getCategories = computed(() => {
|
const getCategories = computed(() => {
|
||||||
groupInfo.value.category = ''
|
|
||||||
const default_value = [{ title: '全部', value: '' }]
|
const default_value = [{ title: '全部', value: '' }]
|
||||||
if (!props.categories || !groupInfo.value.media_type || !props.categories[groupInfo.value.media_type ?? ''])
|
if (!props.categories || !groupInfo.value.media_type || !props.categories[groupInfo.value.media_type ?? ''])
|
||||||
return default_value
|
return default_value
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ function addFilterRuleGroup() {
|
|||||||
name: `规则组${filterRuleGroups.value.length + 1}`,
|
name: `规则组${filterRuleGroups.value.length + 1}`,
|
||||||
rule_string: '',
|
rule_string: '',
|
||||||
media_type: '',
|
media_type: '',
|
||||||
|
category: '',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user