From 421a7ab7cef1a44ceb6a934ee7f817d628f69637 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Tue, 28 May 2024 16:48:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=BF=87=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/i/search/Content.vue | 6 +++++- pages/search/[id].vue | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/i/search/Content.vue b/components/i/search/Content.vue index 7e9641d..1b337ea 100644 --- a/components/i/search/Content.vue +++ b/components/i/search/Content.vue @@ -81,10 +81,14 @@ const props = defineProps({ index: { type: Number, default: 0 + }, + collapse: { + type: Boolean, + default: true } }) const emits = defineEmits(['regenerate']) -const openCollapse = ref(true) +const openCollapse = ref(props.collapse) function handleToggleCollapse () { openCollapse.value = !openCollapse.value } diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 0781d11..bb49fd0 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -19,6 +19,7 @@ :item="item" ref="historyAskRefs" :asking="false" + :collapse="false" :is-last-index="false" :index="index" /> -- GitLab