fix: 修改部分内容,支持鸿蒙系统浏览器。
This commit is contained in:
@@ -16,6 +16,8 @@ export default class Util {
|
||||
mobile: !!userAgent.match(/AppleWebKit.*Mobile.*/), // 是否为移动终端
|
||||
iPad: userAgent.indexOf('iPad') > -1, // 是否iPad
|
||||
webApp: userAgent.indexOf('Safari') === -1, // 是否web应该程序,没有头部与底部
|
||||
wechat: userAgent.indexOf('MicroMessenger') > -1
|
||||
wechat: userAgent.indexOf('MicroMessenger') > -1, // 是否微信浏览器
|
||||
isapp: window.innerWidth < 768, // 是否微信浏览器
|
||||
harmonyOS: userAgent.indexOf('HarmonyOS') > -1,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user