提交 5151fe09 编写于 作者: View Design's avatar View Design

Update library.js

上级 3a7a3300
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册