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

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

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