From 4e27d707ecc052ad45aadbbb508d800904d1aca1 Mon Sep 17 00:00:00 2001 From: Eamon-meng <17516219072@163.com> Date: Wed, 11 Mar 2026 17:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=A1=8C=E9=9D=A2=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/hooks/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/hooks/index.ts b/src/lib/hooks/index.ts index f2df1ad..f5ba599 100644 --- a/src/lib/hooks/index.ts +++ b/src/lib/hooks/index.ts @@ -6,9 +6,10 @@ export const usePlatformType = (): TradePlatform => { // 在SSR环境下返回默认值 const [platform, setPlatform] = useState(() => { if (typeof window === 'undefined') return TradePlatform.Desktop - return window.matchMedia('(max-width: 768px)').matches - ? TradePlatform.Mobile - : TradePlatform.Desktop + // return window.matchMedia('(max-width: 768px)').matches + // ? TradePlatform.Mobile + // : TradePlatform.Desktop + return TradePlatform.Desktop }) useEffect(() => {