From 5151fe09e698058388b64f59c3ed4c3a2ddc07eb Mon Sep 17 00:00:00 2001 From: Aresn Date: Fri, 31 May 2024 13:56:30 +0800 Subject: [PATCH] Update library.js --- stores/library.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stores/library.js b/stores/library.js index 30d1cdf..b16ac8b 100644 --- a/stores/library.js +++ b/stores/library.js @@ -17,7 +17,11 @@ export const useLibraryStore = defineStore('library', () => { function $openLibrarySelect (id, collectionId) { $isLibrarySelectOpen.value = true if (id) $selectThreadId.value = id - if (collectionId) $selectCollectionId.value = collectionId + if (collectionId) { + $selectCollectionId.value = collectionId + } else { + $selectCollectionId.value = [] + } } function $closeLibrarySelect () { $isLibrarySelectOpen.value = false -- GitLab