Commit a835de7f by 李伟康

commit

1 parent 54c1b23c
......@@ -123,7 +123,8 @@ export default {
},
methods: {
checkOpenLaunch () {
const userAgent = navigator.userAgent,
// const userAgent = navigator.userAgent,
const userAgent= 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_7_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.18(0x17001220) NetType/WIFI Language/zh_CN',
MicroMessenger = userAgent.match(/MicroMessenger\/([\d\.]+)/i)
let wechat_version = ''
if (MicroMessenger && MicroMessenger.length) wechat_version = MicroMessenger[1]
......@@ -151,7 +152,7 @@ export default {
* 👇 iOS15底层 WebKit 接口发生变更,微信版本8.0.8以下(不包括8.0.8)无法使用开放标签,可引导用户升级最新版本微信
*/
if (wechat_version && a == 15) {
if (wx_a < 80) throw false
if (`${wx_a}${wx_b}` < 80) throw false
if (`${wx_a}${wx_b}` == 80 && wx_c < 8) throw false
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!