From 4d728be94067e60ff6dd4ba861d6e3d8f413ea87 Mon Sep 17 00:00:00 2001 From: qiutianhong Date: Fri, 1 Nov 2024 14:19:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=89=93=E5=8C=85=E6=97=B6?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components.d.ts | 2 - frontend/src/components/chat/Chat.vue | 2 +- frontend/src/components/chat/ChatBox.vue | 10 +- frontend/src/components/chat/ChatMsgList.vue | 2 +- frontend/src/stores/chat.ts | 191 +++++++++++++++---- frontend/src/stores/db.ts | 4 +- frontend/src/stores/upgrade.ts | 6 +- frontend/src/system/index.ts | 5 +- 8 files changed, 165 insertions(+), 57 deletions(-) diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 3d33306..522afce 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -57,8 +57,6 @@ declare module 'vue' { ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] - ElCollapse: typeof import('element-plus/es')['ElCollapse'] - ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] ElContainer: typeof import('element-plus/es')['ElContainer'] ElDialog: typeof import('element-plus/es')['ElDialog'] diff --git a/frontend/src/components/chat/Chat.vue b/frontend/src/components/chat/Chat.vue index 1492dd7..5af16a2 100644 --- a/frontend/src/components/chat/Chat.vue +++ b/frontend/src/components/chat/Chat.vue @@ -10,7 +10,7 @@ // 将用户列表转换为 el-transfer 组件所需的数据格式 const generateData = () => { - return store.allUserList.map((user) => ({ + return store.allUserList.map((user: any) => ({ key: user.id, label: user.nickname, avatar: user.avatar, // 添加头像数据 diff --git a/frontend/src/components/chat/ChatBox.vue b/frontend/src/components/chat/ChatBox.vue index 563387f..d9f6ffe 100644 --- a/frontend/src/components/chat/ChatBox.vue +++ b/frontend/src/components/chat/ChatBox.vue @@ -1,6 +1,6 @@