diff --git a/components/i/library/select.vue b/components/i/library/select.vue
index 541540d5471b7f8099cd1f90733c880f58ace4b3..e363c1893dd821c809b46464d9861e33fe73cc6e 100644
--- a/components/i/library/select.vue
+++ b/components/i/library/select.vue
@@ -17,6 +17,7 @@
leading-icon="i-heroicons-plus-20-solid"
label="创建新集合"
color="gray"
+ @click="handleOpenCreate"
/>
@@ -36,6 +37,7 @@
diff --git a/components/i/library/thread.vue b/components/i/library/thread.vue
index a5ff7e787c1106613b1d16b0876538548bee4856..14d30d6b8b974e6c608a0bfc5e5e8ab21b78b19e 100644
--- a/components/i/library/thread.vue
+++ b/components/i/library/thread.vue
@@ -60,9 +60,19 @@ const Library = inject('Library')
const textColor = 'text-gray-500 dark:text-gray-400'
const actionItems = [
[
+ {
+ label: '添加到收藏',
+ icon: 'i-heroicons-plus',
+ click: () => {
+ handleOpenSelect()
+ }
+ },
{
label: '更改集合',
- icon: 'i-heroicons-squares-plus'
+ icon: 'i-heroicons-squares-plus',
+ click: () => {
+ handleOpenSelect()
+ }
},
{
label: '从收藏中移除',
diff --git a/pages/library.vue b/pages/library.vue
index 52ec1dd9191add529b256ea397cb50520f44ac03..4cd5c86a1730cc4c220ffe88dde9ee8c33f951c9 100644
--- a/pages/library.vue
+++ b/pages/library.vue
@@ -66,6 +66,7 @@ function handleOpenSelect (id) {
refSelect.value.handleOpen(id)
}
provide('Library', {
- handleOpenSelect
+ handleOpenSelect,
+ handleOpenCreateLibrary
})