From 7b29a56cc02275d9d1332cab17a12e19f1825478 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 11 May 2022 14:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/I56UQP=E3=80=91WebSocket=20?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E5=8F=91=E7=94=9F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/jeecg/JVxeTable/src/hooks/useWebSocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/jeecg/JVxeTable/src/hooks/useWebSocket.ts b/src/components/jeecg/JVxeTable/src/hooks/useWebSocket.ts index 736423c..29020d0 100644 --- a/src/components/jeecg/JVxeTable/src/hooks/useWebSocket.ts +++ b/src/components/jeecg/JVxeTable/src/hooks/useWebSocket.ts @@ -58,7 +58,7 @@ const vs = { const url = `${domain}/vxeSocket/${userId}/${this.pageId}` //update-begin-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278 let token = (getToken() || '') as string - this.ws = new WebSocket(url, [token]) + this.ws = new WebSocket(url) //update-end-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278 this.ws.onopen = this.on.open.bind(this) this.ws.onerror = this.on.error.bind(this)