手机端支付修改为桌面支付方式
This commit is contained in:
@@ -6,9 +6,10 @@ export const usePlatformType = (): TradePlatform => {
|
||||
// 在SSR环境下返回默认值
|
||||
const [platform, setPlatform] = useState<TradePlatform>(() => {
|
||||
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(() => {
|
||||
|
||||
Reference in New Issue
Block a user