Skip to content

Commit

Permalink
支持有路径的后端地址 (MetaCubeX#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
717009629 authored Apr 2, 2024
1 parent c78f587 commit d148c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signals/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <T>(
path: string,
Expand Down

0 comments on commit d148c19

Please sign in to comment.