From d5f5a0a892694ab24b7656d1407d0c981337a3c8 Mon Sep 17 00:00:00 2001 From: Quicy <1728550853@qq.com> Date: Wed, 28 Jan 2026 14:49:14 +0800 Subject: [PATCH] feat: chat scroll and load --- packages/shared/src/chatInfo.ts | 3 +- packages/web/src/App.vue | 2 - .../components/ChatList/RobotChat/index.vue | 15 +++- .../components/ChatList/UserChat/index.vue | 2 +- .../web/src/components/ChatList/index.vue | 76 ++++++++++++++++--- packages/web/src/pages/chat/index.vue | 52 +++++++++---- packages/web/src/store/ChatList.ts | 36 +++++++++ packages/web/src/utils/loadRobotChat.ts | 28 +++++++ 8 files changed, 181 insertions(+), 33 deletions(-) create mode 100644 packages/web/src/store/ChatList.ts create mode 100644 packages/web/src/utils/loadRobotChat.ts diff --git a/packages/shared/src/chatInfo.ts b/packages/shared/src/chatInfo.ts index f852f9fa..3a11d13b 100644 --- a/packages/shared/src/chatInfo.ts +++ b/packages/shared/src/chatInfo.ts @@ -3,7 +3,8 @@ export interface robot{ time: Date, id: string | number, type: string, - action:'robot' + action: 'robot', + state:'thinking'|'generate'|'complete' } export interface user{ diff --git a/packages/web/src/App.vue b/packages/web/src/App.vue index 2a27df1c..ede2f9ac 100644 --- a/packages/web/src/App.vue +++ b/packages/web/src/App.vue @@ -8,9 +8,7 @@ import { } from '@memoh/ui' import SvgIcon from '@jamescoyle/vue-icon' import { mdiTranslate } from '@mdi/js' -import i18n from './i18n' -console.log(i18n.global.locale)