|
@@ -4580,16 +4580,16 @@ const createWebSocketConnection = async (type = 1) => {
|
|
|
yLaserState.value = laserMap
|
|
yLaserState.value = laserMap
|
|
|
applyLaserStateSnapshot(laserMap.toJSON())
|
|
applyLaserStateSnapshot(laserMap.toJSON())
|
|
|
// 追平最新一条消息(latest / slideIndex)
|
|
// 追平最新一条消息(latest / slideIndex)
|
|
|
- if (yMessage.value) {
|
|
|
|
|
- const latest = yMessage.value.get('latest')
|
|
|
|
|
- if (latest && latest.mId !== mId.value) {
|
|
|
|
|
- getMessages(latest)
|
|
|
|
|
- }
|
|
|
|
|
- const slideIndex = yMessage.value.get('slideIndex')
|
|
|
|
|
- if (slideIndex && slideIndex.mId !== mId.value) {
|
|
|
|
|
- getMessages(slideIndex)
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (yMessage.value) {
|
|
|
|
|
+ // const latest = yMessage.value.get('latest')
|
|
|
|
|
+ // if (latest && latest.mId !== mId.value) {
|
|
|
|
|
+ // getMessages(latest)
|
|
|
|
|
+ // }
|
|
|
|
|
+ // const slideIndex = yMessage.value.get('slideIndex')
|
|
|
|
|
+ // if (slideIndex && slideIndex.mId !== mId.value) {
|
|
|
|
|
+ // getMessages(slideIndex)
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
// ★ 学生 sync 完成后主动向老师查询计时器状态
|
|
// ★ 学生 sync 完成后主动向老师查询计时器状态
|
|
|
// (服务器持久化不可靠时,由老师内存状态重发,保证刷新后接着跑)
|
|
// (服务器持久化不可靠时,由老师内存状态重发,保证刷新后接着跑)
|
|
|
if (props.type === '2') {
|
|
if (props.type === '2') {
|