From b2753e074e5f94fb3a474ec953e422fa692b0dd7 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 5 Mar 2024 16:07:21 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E7=9A=84host?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/websocket.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/websocket.ts b/src/hooks/websocket.ts index 5db488a..c4d7de9 100644 --- a/src/hooks/websocket.ts +++ b/src/hooks/websocket.ts @@ -12,6 +12,7 @@ const useAdminWebSocket = () => { // ws地址 const baseUri = import.meta.env.VITE_API_URL + const host = window.location.host const protocol = window.location.protocol || '' const wsUri = `${protocol.startsWith('https') ? 'wss' : 'ws'}://${host}${baseUri}/ws?access_token=${accessToken}`