From b8fe0df77c5933eb5aa38581384077d0f244001d Mon Sep 17 00:00:00 2001 From: shunyue1320 Date: Wed, 22 Mar 2023 17:13:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E9=87=8D=E7=BD=AE=E5=9B=9E?= =?UTF-8?q?=E7=AD=94=E6=97=B6=E6=BB=9A=E5=8A=A8=E5=AE=9A=E4=BD=8D=E8=87=B3?= =?UTF-8?q?=E8=AF=A5=E5=9B=9E=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat/components/Message/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/chat/components/Message/index.vue b/src/views/chat/components/Message/index.vue index d625a8a7be..43ee3df084 100644 --- a/src/views/chat/components/Message/index.vue +++ b/src/views/chat/components/Message/index.vue @@ -31,6 +31,8 @@ const textRef = ref() const asRawText = ref(props.inversion) +const messageRef = ref() + const options = computed(() => { const common = [ { @@ -71,11 +73,12 @@ function handleSelect(key: 'copyText' | 'delete' | 'toggleRenderType') { function handleRegenerate() { emit('regenerate') + messageRef.value?.scrollIntoView() }