Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: location.search not work #842

Merged
merged 1 commit into from
Jul 22, 2024
Merged

fix: location.search not work #842

merged 1 commit into from
Jul 22, 2024

Conversation

clansty
Copy link
Contributor

@clansty clansty commented Jul 19, 2024

原先的代码版本中像 http://127.0.0.1/?hostname=1.2.3.4 这样通过参数指定连接的地址不生效,只有 http://127.0.0.1/#?hostname=1.2.3.4 这么写才生效

@kunish
Copy link
Collaborator

kunish commented Jul 22, 2024

昂?location.search 和 window.location.search 是同一回事,没看出来跟你的描述是有什么关联

@clansty
Copy link
Contributor Author

clansty commented Jul 22, 2024

你的 location 是 useLocation(),是 router 给的

@kunish kunish merged commit 614430e into MetaCubeX:main Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants