Commit 50e8796b7ae490972aab26bac7a094b3c6c0b0f7
1 parent
3eb71237
兼容HUAWEI和HONOR手机键盘隐藏后灰框问题~
Showing
1 changed file
with
1 additions
and
1 deletions
src/pages/search/search.vue
| @@ -924,7 +924,7 @@ | @@ -924,7 +924,7 @@ | ||
| 924 | if (document.hidden === false && this.$route.name == 'search') { | 924 | if (document.hidden === false && this.$route.name == 'search') { |
| 925 | 925 | ||
| 926 | // 判断UA,如果是华为手机或者荣耀手机,重新初始化页面 | 926 | // 判断UA,如果是华为手机或者荣耀手机,重新初始化页面 |
| 927 | - if(ua.match(/Android/i) == "huawei" || ua.match(/Android/i) == "honor") { | 927 | + if(ua.match(/HUAWEI/i) == "huawei" || ua.match(/HONOR/i) == "honor") { |
| 928 | 928 | ||
| 929 | // 初始化页面 | 929 | // 初始化页面 |
| 930 | this.initPage(); | 930 | this.initPage(); |