diff --git a/components/i/library/Select.vue b/components/i/library/Select.vue
index 79dd3dfba5fdf407ec206a162754d3374e220075..9fd17e0919f29182b780387d97bfbe0b8172af2b 100644
--- a/components/i/library/Select.vue
+++ b/components/i/library/Select.vue
@@ -52,6 +52,7 @@
const { $isLibrarySelectOpen, $selectCollectionId, $selectThreadId, $collection } = storeToRefs(useLibraryStore())
const { $closeLibrarySelect, $openLibraryCreate, $setSelectCollectionId, $getCollection } = useLibraryStore()
const { saveCollection, deleteCollectionRecord } = useCollectionRequest()
+const emits = defineEmits(['success'])
// ๅ้ๅ่กจ
const selected = ref([])
const loading = ref(false)
@@ -83,6 +84,11 @@ async function handleSave() {
loading.value = false
handleClose()
$getCollection()
+ emits('success', {
+ c_id: $selectThreadId.value,
+ collection_id: selected.value[0],
+ collection_name: $collection.value.find(i => i.id === selected.value[0]).name
+ })
}
watch(() => $isLibrarySelectOpen.value, () => {
selected.value = [...$selectCollectionId.value]
diff --git a/components/i/library/Thread.vue b/components/i/library/Thread.vue
index e15795076e9aab67c181bb91908615049604bc2e..eace86dc7deabd560aedc5f5257555f719ca69dd 100644
--- a/components/i/library/Thread.vue
+++ b/components/i/library/Thread.vue
@@ -41,6 +41,7 @@
\ No newline at end of file
diff --git a/layouts/default.vue b/layouts/default.vue
index 3e9e143099dc2900f7fbb0b933d3f7c488f35f1c..b7f1aa3e005e63cfdf40dccc03d7ae08574c34e4 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -30,17 +30,26 @@
-
+