ZaiZai 11 months ago
parent
commit
f72b01b619
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/layout/index.vue

+ 3 - 5
src/layout/index.vue

@@ -188,11 +188,9 @@ const cascaderSend = async ({ projectId, contractId }) => {
     }
     }
     //链接webSocket
     //链接webSocket
     if (!isNullES(socket)) socket.close()
     if (!isNullES(socket)) socket.close()
-    if (!website.localModel) {
-        socket = new HcSocket({ projectId, contractId, userId: userId.value }, (res) => {
-            socketData(res?.data)
-        })
-    }
+    socket = new HcSocket({ projectId, contractId, userId: userId.value }, (res) => {
+        socketData(res?.data)
+    })
 }
 }
 
 
 //长链接消息
 //长链接消息