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

+ 3 - 5
src/layout/index.vue

@@ -202,11 +202,9 @@ const cascaderSend = async ({ projectId, contractId }) => {
     }
     //链接webSocket
     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)
+    })
 }
 
 //长链接消息