fix: 增加认证,修改部分展示内容。

This commit is contained in:
tianyongbao
2024-09-26 23:30:40 +08:00
parent 8c35a50e60
commit e674e30f3d
10 changed files with 14 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ export default class Util {
ios: !!userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), // ios终端
android: userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1, // android终端或者uc浏览器
iPhone: userAgent.indexOf('iPhone') > -1, // 是否为iPhone
mobile: !!userAgent.match(/AppleWebKit.*Mobile.*/), // 是否为移动终端
iPad: userAgent.indexOf('iPad') > -1, // 是否iPad
webApp: userAgent.indexOf('Safari') === -1, // 是否web应该程序没有头部与底部
wechat: userAgent.indexOf('MicroMessenger') > -1