diff --git a/src/App.vue b/src/App.vue index d05753a..01c587b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,7 +40,10 @@ const { state: list, execute: fetchList } = useAsyncState(() => { }) function handleCheckChange(fileId: string, checked: boolean) { - return uncheckList.value = uncheckList.value.filter(x => x !== fileId || !checked) + if (uncheckList.value.includes(fileId)) + uncheckList.value = uncheckList.value.filter(x => x !== fileId || !checked) + else + uncheckList.value = uncheckList.value.concat(fileId) } // 剧集模式下使用该列表 @@ -311,7 +314,7 @@ onUnmounted(() => {