恢复 im 注释
This commit is contained in:
parent
7894214859
commit
2aaa15230a
|
@ -83,9 +83,6 @@ const btnList = [ // 工具栏按钮列表
|
||||||
// === 页面加载完毕 ===
|
// === 页面加载完毕 ===
|
||||||
onMounted(async() => {
|
onMounted(async() => {
|
||||||
if (!electron) return // 浏览器端
|
if (!electron) return // 浏览器端
|
||||||
// console.log(sessionStore)
|
|
||||||
// window.test = sessionStore
|
|
||||||
// window.test1 = toolStore
|
|
||||||
getClassInfo() // 获取课堂详情 ex3
|
getClassInfo() // 获取课堂详情 ex3
|
||||||
resetStatus() // 开启重置状态-监听
|
resetStatus() // 开启重置状态-监听
|
||||||
})
|
})
|
||||||
|
@ -98,8 +95,8 @@ const getClassInfo = async () => {
|
||||||
// 群id
|
// 群id
|
||||||
let timGroupId = data?.ex3 || '@TGS#36AICW6O6'
|
let timGroupId = data?.ex3 || '@TGS#36AICW6O6'
|
||||||
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
|
||||||
if (!timGroupId) return ElMessage.error('房间创建-失败')
|
if (!timGroupId) return ElMessage.error('房间创建-失败')
|
||||||
classManageApi.startClass(classObj.id, timGroupId) // 开始上课
|
classManageApi.startClass(classObj.id, timGroupId) // 开始上课
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue