From 2d00872c7cf04633cc14c8388996a78f2adf28eb Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Mon, 27 May 2024 14:52:36 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/i/SearchHistory.vue | 6 +-- pages/search/[id].vue | 97 ++++++++++++++++++++-------------- 2 files changed, 61 insertions(+), 42 deletions(-) diff --git a/components/i/SearchHistory.vue b/components/i/SearchHistory.vue index 665dcfd..1b31a0f 100644 --- a/components/i/SearchHistory.vue +++ b/components/i/SearchHistory.vue @@ -23,7 +23,7 @@ color="gray" variant="ghost" size="xs" - :to="'/search/' + item.url" + :to="`/search/${item.c_id}`" @click="handleClickItem" >
{{ item.title }}
@@ -55,7 +55,7 @@ variant="ghost" long leading-icon="i-heroicons-document-text" - :to="'/search/' + item.url" + :to="`/search/${item.c_id}`" @click="handleClose" >
{{ item.title }}
@@ -91,6 +91,6 @@ async function getUserHistory () { searchHistory.value = data.value && data.value.data || [] } nextTick(() => { - getUserHistory() + $isSignIn && getUserHistory() }) diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 8050769..5e19f8a 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -26,6 +26,7 @@

{{ askingData.question }}

\ No newline at end of file -- GitLab