fix: 全局格式化

This commit is contained in:
Tim
2025-08-11 18:16:13 +08:00
parent 31cff70f63
commit 1c4df40f12
76 changed files with 1442 additions and 939 deletions

View File

@@ -16,11 +16,19 @@ export const useIsMobile = () => {
}
const mobileKeywords = [
'android', 'iphone', 'ipad', 'ipod', 'blackberry', 'windows phone',
'mobile', 'tablet', 'opera mini', 'iemobile'
'android',
'iphone',
'ipad',
'ipod',
'blackberry',
'windows phone',
'mobile',
'tablet',
'opera mini',
'iemobile',
]
return mobileKeywords.some(keyword => userAgent.includes(keyword))
return mobileKeywords.some((keyword) => userAgent.includes(keyword))
}
if (typeof window !== 'undefined') {
@@ -43,4 +51,3 @@ export const useIsMobile = () => {
return isMobileUserAgent()
})
}