[update] 判断移动端增加鸿蒙UA

This commit is contained in:
danshihao
2024-04-19 17:02:34 +08:00
parent d03fadfe8a
commit 785acaa00f
2 changed files with 2 additions and 25 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ export function evil (fn) {
export function isMobile () {
const userAgentInfo = navigator.userAgent
const mobileAgents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod']
const mobileAgents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod', 'Harmony']
let mobileFlag = false