From 502a62c2117925779f2b44351aca782e7d690b4e Mon Sep 17 00:00:00 2001 From: callmewhy Date: Sat, 23 Nov 2024 23:53:17 +0800 Subject: [PATCH] no message --- apps/example/src/pages/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/example/src/pages/index.tsx b/apps/example/src/pages/index.tsx index ee770ca..b260fb8 100644 --- a/apps/example/src/pages/index.tsx +++ b/apps/example/src/pages/index.tsx @@ -1,12 +1,16 @@ import { Safari } from '@/components/safari' +import { useSearchParams } from 'react-router-dom' export default function () { + const [search] = useSearchParams() + const url = search.get('url') ?? `${window.origin}/dapp` + return (
- +
-