默认群没清除,导致没有创建群

This commit is contained in:
zdg 2024-09-05 16:28:15 +08:00
parent f5f33eaa63
commit 5ecba3fb62
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ const getClassInfo = async () => {
const { data } = await classManageApi.getClassInfo(classObj.id) const { data } = await classManageApi.getClassInfo(classObj.id)
classObj.data = data classObj.data = data
// id // id
let timGroupId = data?.ex3 || '@TGS#36AICW6O6' let timGroupId = data?.ex3 || ''
console.log('获取群ID:', timGroupId) console.log('获取群ID:', timGroupId)
const chat = await imChatRef.value?.initImChat(timGroupId) // im-chat const chat = await imChatRef.value?.initImChat(timGroupId) // im-chat
if (!timGroupId) timGroupId = chat?.timGroupId if (!timGroupId) timGroupId = chat?.timGroupId