|
@@ -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
|