修复首页报错问题

This commit is contained in:
YeMingfei666 2024-12-16 10:18:58 +08:00
parent b4542559ae
commit aa7f7f3392
1 changed files with 2 additions and 1 deletions

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
} }