|
@@ -150,12 +150,14 @@ const cascaderSend = async ({ projectId, contractId }) => {
|
|
|
}
|
|
|
//链接webSocket
|
|
|
if (!isNullES(socket)) socket.close()
|
|
|
- socket = new HcSocket({ projectId, contractId, userId: userId.value }, ({ data }) => {
|
|
|
- const res = getObjValue(data)
|
|
|
- if (res.type === 'msgRemind') {
|
|
|
- taskCount.value = res.data ?? 0
|
|
|
- }
|
|
|
- })
|
|
|
+ if (!website.localModel) {
|
|
|
+ socket = new HcSocket({ projectId, contractId, userId: userId.value }, ({ data }) => {
|
|
|
+ const res = getObjValue(data)
|
|
|
+ if (res.type === 'msgRemind') {
|
|
|
+ taskCount.value = res.data ?? 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
//本地模式
|
|
|
if (website.localModel) {
|
|
|
setTimeout(() => {
|