手机端支付修改为桌面支付方式

This commit is contained in:
Eamon-meng
2026-03-11 17:29:29 +08:00
parent 32c08d96d4
commit 4e27d707ec

View File

@@ -6,9 +6,10 @@ export const usePlatformType = (): TradePlatform => {
// 在SSR环境下返回默认值 // 在SSR环境下返回默认值
const [platform, setPlatform] = useState<TradePlatform>(() => { const [platform, setPlatform] = useState<TradePlatform>(() => {
if (typeof window === 'undefined') return TradePlatform.Desktop if (typeof window === 'undefined') return TradePlatform.Desktop
return window.matchMedia('(max-width: 768px)').matches // return window.matchMedia('(max-width: 768px)').matches
? TradePlatform.Mobile // ? TradePlatform.Mobile
: TradePlatform.Desktop // : TradePlatform.Desktop
return TradePlatform.Desktop
}) })
useEffect(() => { useEffect(() => {