Browse Source

refactor(Student): 注释掉追平最新消息的同步逻辑

lsc 1 week ago
parent
commit
1c966acfa3
1 changed files with 10 additions and 10 deletions
  1. 10 10
      src/views/Student/index.vue

+ 10 - 10
src/views/Student/index.vue

@@ -4580,16 +4580,16 @@ const createWebSocketConnection = async (type = 1) => {
         yLaserState.value = laserMap
         applyLaserStateSnapshot(laserMap.toJSON())
         // 追平最新一条消息(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 完成后主动向老师查询计时器状态
         //   (服务器持久化不可靠时,由老师内存状态重发,保证刷新后接着跑)
         if (props.type === '2') {