diff --git a/src/views/chat/components/Message/index.vue b/src/views/chat/components/Message/index.vue index d625a8a..239ec25 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 = [ { @@ -70,12 +72,17 @@ function handleSelect(key: 'copyText' | 'delete' | 'toggleRenderType') { } function handleRegenerate() { + messageRef.value?.scrollIntoView() emit('regenerate') }