diff --git a/components/i/search/Content.vue b/components/i/search/Content.vue index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0c0097fa79c97d17f1e1ba18ec5326a14abe43cc 100644 --- a/components/i/search/Content.vue +++ b/components/i/search/Content.vue @@ -0,0 +1,115 @@ + + \ No newline at end of file diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 25c1c0e3c58914f52a3560eccf21f905465662ef..f45a47d05a28a662cef40d972c6495fe90dd0406 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -35,73 +35,14 @@

{{ item.question }}

- - - - - - - -
- - {{ item.ansLoading ? '回答中' : '回答' }} -
- -
- - - -
- + { // 在asking操作的时候生效 if (!asking.value || !isAutoToBottom.value) return @@ -146,8 +86,6 @@ const handleScroll = (event, params) => { const top = window.scrollY; if (top < y.value) { isAutoToBottom.value = false - } else { - markedWindowScrollTop = top } }) } @@ -166,23 +104,14 @@ const handleFocusTitle = () => { const handleBlurTitle = () => { isEditTitle.value = false } -const handleShare = (hash) => { - useCopyToClipboard().copy(window.location.href + (hash ? '#' + hash : '')) +function handleShare () { + useCopyToClipboard().copy(window.location.href) toast.add({ icon: 'i-heroicons-information-circle-20-solid', timeout: 2000, title: '链接已复制到剪贴板' }) } -const handleCopyMD = (index) => { - const article = data.value[index].article - useCopyToClipboard().copy(article) - toast.add({ - icon: 'i-heroicons-information-circle-20-solid', - timeout: 1000, - title: '复制成功' - }) -} const handleReGenerate = (index) => { editIndex.value = index const question = data.value[editIndex.value].question