Merge pull request '桌面不发消息' (#226) from zxl into main

Reviewed-on: #226
This commit is contained in:
zhangxuelin 2025-01-16 15:01:28 +08:00
commit a793e67a60
1 changed files with 6 additions and 6 deletions

View File

@ -38,12 +38,12 @@ export class Classcourse {
if (isCourse) {
// 连接socket
ChatWs.id = classcourse.timgroupid // 群组id
if (!ChatWs.ws) {
ChatWs.init().then(_ => {
isPublic && ChatWs.sendMsg('open', {id: classcourse.id})
// isPublic && console.log('socket-开课消息-已发送')
})
}
// if (!ChatWs.ws) {
// ChatWs.init().then(_ => {
// isPublic && ChatWs.sendMsg('open', {id: classcourse.id})
// // isPublic && console.log('socket-开课消息-已发送')
// })
// }
this.classcourse = classcourse // 课堂信息
this.id = classcourse.id // 课堂id
// 如果课堂信息有paging则更新当前页码