diff --git a/src/renderer/src/views/tool/sphere.vue b/src/renderer/src/views/tool/sphere.vue index 745475c..d5c015b 100644 --- a/src/renderer/src/views/tool/sphere.vue +++ b/src/renderer/src/views/tool/sphere.vue @@ -83,9 +83,6 @@ const btnList = [ // 工具栏按钮列表 // === 页面加载完毕 === onMounted(async() => { if (!electron) return // 浏览器端 - // console.log(sessionStore) - // window.test = sessionStore - // window.test1 = toolStore getClassInfo() // 获取课堂详情 ex3 resetStatus() // 开启重置状态-监听 }) @@ -98,8 +95,8 @@ const getClassInfo = async () => { // 群id let timGroupId = data?.ex3 || '@TGS#36AICW6O6' console.log('获取群ID:', timGroupId) - // const chat = await imChatRef.value?.initImChat(timGroupId) // 初始化im-chat - // if (!timGroupId) timGroupId = chat?.timGroupId + const chat = await imChatRef.value?.initImChat(timGroupId) // 初始化im-chat + if (!timGroupId) timGroupId = chat?.timGroupId if (!timGroupId) return ElMessage.error('房间创建-失败') classManageApi.startClass(classObj.id, timGroupId) // 开始上课 }