Skip to content

Commit

Permalink
fix: 修复组合订阅中的分组选择状态
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Mar 26, 2024
1 parent fb04c6f commit 945fc78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.213",
"version": "2.14.214",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
3 changes: 1 addition & 2 deletions src/views/SubEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,6 @@ const urlValidator = (val: string): Promise<boolean> => {
};
watch([tag, form.subscriptions, subsSelectList], () => {
const selected = toRaw(form.subscriptions) || []
// console.log(`form.subscriptions: ${selected}`)
const group = subsSelectList.value.filter(item => shouldShowElement(item[3])).map(item => item[0]) || []
// 1. group 中不包含 selected 中的任何元素, subCheckbox 为 false, subCheckboxIndeterminate 为 false
// 2. group 中包含 selected 中的任何元素, subCheckbox 为 true, subCheckboxIndeterminate 为 true
Expand All @@ -844,7 +843,7 @@ const urlValidator = (val: string): Promise<boolean> => {
subCheckbox.value = false
subCheckboxIndeterminate.value = false
}
});
}, { immediate: true });
// const subCheckboxIndeterminate = computed(() => {
// const selected = toRaw(form.subscriptions)
// const currentGroup = subsSelectList.value.filter(item => shouldShowElement(item[3])).map(item => item[0])
Expand Down

0 comments on commit 945fc78

Please sign in to comment.