diff --git a/components/i/library/Thread.vue b/components/i/library/Thread.vue index eace86dc7deabd560aedc5f5257555f719ca69dd..388a970e9935a1aabf3a6716356946717e474a8d 100644 --- a/components/i/library/Thread.vue +++ b/components/i/library/Thread.vue @@ -76,9 +76,12 @@ function handleOpenSelect () { } function handleUpdateCollect (data) { const { c_id } = data.value - if (c_id === thread.value.c_id) thread.value.collections = [data.value] + if (c_id === thread.value.c_id) { + thread.value.collections = [data.value] + Layout.clearCollectData() + } } watch(()=> Layout.selectCollectData, (data) => { - handleUpdateCollect(data) + if (data.value !== null) handleUpdateCollect(data) }, { deep: true }) \ No newline at end of file