From 28f20249c9d8bfaaaf679b0cbf1a847d9888cfb5 Mon Sep 17 00:00:00 2001 From: a1mer Date: Sun, 28 Jan 2024 12:02:25 +0800 Subject: [PATCH] chore: fix & theme --- src/App.vue | 41 ++++++++++++++++++--------------- src/components/PreviewEntry.vue | 4 ++-- src/utils/rename.ts | 2 +- uno.config.ts | 20 +++++++++++++++- 4 files changed, 44 insertions(+), 23 deletions(-) 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(() => {