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(() => {