From c00006e4a526ef19246348b58318da8eecb61331 Mon Sep 17 00:00:00 2001 From: qiutianhong Date: Thu, 31 Oct 2024 15:34:04 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9A=E6=96=B0=E5=A2=9E=E4=BA=86?= =?UTF-8?q?=E7=BE=A4=E7=BB=84=E8=A1=A8=EF=BC=88group=EF=BC=89=E5=92=8C?= =?UTF-8?q?=E7=BE=A4=E7=BB=84=E7=94=A8=E6=88=B7=E8=A1=A8=EF=BC=88group=5Fm?= =?UTF-8?q?embers=EF=BC=89=E4=BB=A5=E6=94=AF=E6=8C=81=E7=BE=A4=E7=BB=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=92=8C=E6=88=90=E5=91=98=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/chat/Chat.vue | 2 +- frontend/src/stores/chat.ts | 10 +--------- frontend/src/stores/db.ts | 4 +++- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/chat/Chat.vue b/frontend/src/components/chat/Chat.vue index d76c15a..2a6ead3 100644 --- a/frontend/src/components/chat/Chat.vue +++ b/frontend/src/components/chat/Chat.vue @@ -126,7 +126,7 @@ 取消 - 确定 diff --git a/frontend/src/stores/chat.ts b/frontend/src/stores/chat.ts index 1f032d3..d3b8749 100644 --- a/frontend/src/stores/chat.ts +++ b/frontend/src/stores/chat.ts @@ -31,12 +31,6 @@ export const useChatStore = defineStore('chatStore', () => { const setGroupChatInvitedDialogVisible = (visible: boolean) => { groupChatInvitedDialogVisible.value = visible; }; - -// 创建群聊 - const createGroupChats = () => { - console.log('createGroupChats') - } - // 设置群信息抽屉状态 const setGroupInfoDrawerVisible = (visible: boolean) => { groupInfoSettingDrawerVisible.value = visible @@ -305,7 +299,6 @@ export const useChatStore = defineStore('chatStore', () => { if (!res.ok) { return false; } - console.log(res) const groupData = await res.json(); console.log(groupData) } catch (error) { @@ -611,7 +604,6 @@ export const useChatStore = defineStore('chatStore', () => { createGroupChat, userChatMessage, initOnlineUserList, - getDepartmentList, - createGroupChats + getDepartmentList }; }); \ No newline at end of file diff --git a/frontend/src/stores/db.ts b/frontend/src/stores/db.ts index 5ea56d6..03b223d 100644 --- a/frontend/src/stores/db.ts +++ b/frontend/src/stores/db.ts @@ -15,7 +15,9 @@ dbInit.version(1).stores({ chatmessage: '++id,userId,toUserId,senderInfo,isMe,isRead,content,type,readAt,createdAt', groupmessage: '++id,userId,groupId,senderInfo,isMe,isRead,content,type,readAt,createdAt', // 群组表 - group: '++id,name,description,owner_id,avatar_url,created_at,updated_at,member_count,max_members,is_public,join_policy,group_type,status' + group: '++id,name,creator,createdAt', + // 群成员表 + group_members: '++id,userId,groupId,createdAt', }).upgrade((tx: { conversationList: any;