From d6f48e50b9ffcc5ef79795ec17895b42056ebee9 Mon Sep 17 00:00:00 2001 From: Kuingsmile Date: Wed, 11 Sep 2024 17:34:15 +0800 Subject: [PATCH] :bug: Fix(custom): fix gallery image delete bug ISSUES CLOSED: #239 --- src/renderer/pages/Gallery.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/pages/Gallery.vue b/src/renderer/pages/Gallery.vue index 6f7e4a9d..7e6f8c0d 100644 --- a/src/renderer/pages/Gallery.vue +++ b/src/renderer/pages/Gallery.vue @@ -694,6 +694,9 @@ function multiRemove() { duration: multiRemoveNumber > 5 ? 1000 : 2000 }) } + } else { + files.push(file) + await $$db.removeById(key) } } }