From 15e7a260bf5457ff0473e16dd7ef63d3fceff680 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 21 May 2024 16:09:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=A7=A3=E5=86=B3todo=E3=80=91Ai=20Ch?= =?UTF-8?q?at=20=E5=A2=9E=E5=8A=A0=E5=9B=9E=E5=88=B0=E9=A1=B6=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/chat/index.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index a0cc5bc7..9a0e052a 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -25,7 +25,7 @@ - + @@ -36,7 +36,10 @@
- +
@@ -444,11 +447,22 @@ const getConversation = async (id: string | null) => { // ============ message =========== +/** + * 删除 message + */ const handlerMessageDelete = async () => { // 刷新 message await getMessageList() } +/** + * 回到顶部 + */ +const handlerGoTop = async () => { + await messageRef.value.handlerGoTop() +} + + /** 初始化 **/ onMounted(async () => { // 设置当前对话 TODO 角色仓库过来的,自带 conversationId 需要选中