手机端支付修改为桌面支付方式
This commit is contained in:
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user