提交 75c2ee02 编写于 作者: D DCloud_LXH

fix(h5): 完善在ts中的判断

上级 18a9fda4
......@@ -88,7 +88,7 @@ export function getSystemInfoSync () {
} else if (isIPadOS) {
model = 'iPad'
osname = 'iPadOS'
osversion = window.BigInt ? '14' : '13'
osversion = typeof window.BigInt === 'function' ? '14' : '13'
} else if (isWindows || isMac || isLinux) {
model = 'PC'
const osversionFind = ua.match(/\((.+?)\)/)[1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册