diff --git a/components/i/search/Header.vue b/components/i/search/Header.vue index 03d59c771da1b3b4caa8685ed41dcd4abdb05118..01492e5d4677e53812ea069b891baf5120679b74 100644 --- a/components/i/search/Header.vue +++ b/components/i/search/Header.vue @@ -17,7 +17,47 @@
收藏 - 分享 + + 分享 + +
@@ -32,6 +72,7 @@ const emits = defineEmits(['update-query']) const isEditTitle = ref(false) const titleRef = ref(null) const editTitle = ref('') +const isOpen = ref(false) watch(()=> props.query, () => { editTitle.value = props.query @@ -52,4 +93,8 @@ function handleShare () { title: '链接已复制到剪贴板' }) } +function handleUpdateOpenState (state) { + isOpen.value = state + handleShare() +} \ No newline at end of file