From 2aaa15230a0fd258942962b5dd6dd860284ca761 Mon Sep 17 00:00:00 2001 From: zdg Date: Tue, 3 Sep 2024 18:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=20im=20=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/tool/sphere.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) // 开始上课 }