ZaiZai il y a 11 mois
Parent
commit
c13af2257e
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. 3 5
      src/layout/index.vue

+ 3 - 5
src/layout/index.vue

@@ -166,11 +166,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)
+    })
 }
 
 //长链接消息