修复首页报错问题

This commit is contained in:
2024-12-16 10:18:58 +08:00
parent b4542559ae
commit aa7f7f3392

View File

@@ -335,7 +335,8 @@
} }
}) })
} }
let u = navigator.userAgent; let u = navigator?navigator.userAgent:'';
if (u.toLowerCase().indexOf('micromessenger') !== -1) { if (u.toLowerCase().indexOf('micromessenger') !== -1) {
this.isWeixin = true this.isWeixin = true
} }