|
@@ -178,13 +178,6 @@ const cascaderSend = async ({ projectId, contractId }) => {
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
- //链接webSocket
|
|
|
- if (!isNullES(socket)) socket.close()
|
|
|
- if (!website.localModel) {
|
|
|
- socket = new HcSocket({ projectId, contractId, userId: userId.value }, (res) => {
|
|
|
- socketData(res?.data)
|
|
|
- })
|
|
|
- }
|
|
|
//本地模式
|
|
|
if (website.localModel) {
|
|
|
setTimeout(() => {
|
|
@@ -193,6 +186,13 @@ const cascaderSend = async ({ projectId, contractId }) => {
|
|
|
} else {
|
|
|
reloadRouter.value = true
|
|
|
}
|
|
|
+ //链接webSocket
|
|
|
+ if (!isNullES(socket)) socket.close()
|
|
|
+ if (!website.localModel) {
|
|
|
+ socket = new HcSocket({ projectId, contractId, userId: userId.value }, (res) => {
|
|
|
+ socketData(res?.data)
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//长链接消息
|