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;