duy 1 hónapja
szülő
commit
2103611031
1 módosított fájl, 12 hozzáadás és 12 törlés
  1. 12 12
      src/layout/index.vue

+ 12 - 12
src/layout/index.vue

@@ -160,18 +160,18 @@ const cascaderSend = async ({ projectId, contractId }) => {
         return
     }
     // //本地模式
-    // if (website.localModel) {
-    //     setTimeout(() => {
-    //         reloadRouter.value = true
-    //     }, 1000)
-    // } else {
-    //     reloadRouter.value = true
-    // }
-    // //链接webSocket
-    // if (!isNullES(socket)) socket.close()
-    // socket = new HcSocket({ projectId, contractId, userId: userId.value }, (res) => {
-    //     socketData(res?.data)
-    // })
+    if (website.localModel) {
+        setTimeout(() => {
+            reloadRouter.value = true
+        }, 1000)
+    } else {
+        reloadRouter.value = true
+    }
+    //链接webSocket
+    if (!isNullES(socket)) socket.close()
+    socket = new HcSocket({ projectId, contractId, userId: userId.value }, (res) => {
+        socketData(res?.data)
+    })
     getTaskCountData(projectId, contractId)
 }
  //获取taskCount