lsc 1 day ago
parent
commit
6aafa76ff4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/Student/index.vue

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

@@ -3701,7 +3701,7 @@ const startSocketCheckTimer = () => {
   }
   
   // 每10秒检查一次 socket 连接状态
-  socketCheckTimer.value = setTimeout(() => {
+  socketCheckTimer.value = setInterval(() => {
     if (providerSocket.value) {
       // 直接检查 providerSocket 的连接状态
       // WebsocketProvider 有一个 connected 属性来表示连接状态