From 614430e0060bf3852f73ad3e5aab97ae032a99f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E8=8E=9E=7E=28=3D=5E=E2=96=BD=5E=3D=29?= Date: Tue, 23 Jul 2024 01:23:54 +0800 Subject: [PATCH] fix: location.search not work (#842) --- src/pages/Setup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Setup.tsx b/src/pages/Setup.tsx index e90a459..83ef273 100644 --- a/src/pages/Setup.tsx +++ b/src/pages/Setup.tsx @@ -108,7 +108,7 @@ export default () => { } onMount(() => { - let search = location.search + let search = location.search || window.location.search if (search) { const searchList = location.hash.match(/\?.*$/)