From d148c1941eefdf2fc8092b594de6a246a2adb365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=88=E5=93=A5?= <717009629@qq.com> Date: Tue, 2 Apr 2024 23:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9C=89=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E7=9A=84=E5=90=8E=E7=AB=AF=E5=9C=B0=E5=9D=80=20(#649)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/signals/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signals/request.ts b/src/signals/request.ts index d7133a3..69869b1 100644 --- a/src/signals/request.ts +++ b/src/signals/request.ts @@ -48,7 +48,7 @@ export const endpoint = () => export const secret = () => endpoint()?.secret export const wsEndpointURL = () => - new URL(endpoint()?.url ?? '').origin.replace('http', 'ws') + new URL(endpoint()?.url ?? '').href.replace('http', 'ws') export const useWsRequest = ( path: string,