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}`