From 58b1fd06ac5dd7fbef8ad4966c30f807bd469e56 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Wed, 16 Sep 2020 11:31:48 +0800 Subject: [PATCH] fix a bug --- fir_client/src/components/FirDownload.vue | 9 +++++++-- fir_download/src/components/FirDownload.vue | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/fir_client/src/components/FirDownload.vue b/fir_client/src/components/FirDownload.vue index 0c623e8..aa09ad7 100644 --- a/fir_client/src/components/FirDownload.vue +++ b/fir_client/src/components/FirDownload.vue @@ -451,7 +451,8 @@ android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器 iPad: u.indexOf('iPad') > -1, //是否iPad - webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部 + webApp: u.indexOf('Safari') === -1, //是否web应该程序,没有头部与底部 + macos: u.indexOf('Mac OS') > -1 }; }(), language: (navigator.browserLanguage || navigator.language).toLowerCase() @@ -462,7 +463,11 @@ this.agent = 'wxapple'; //微信 } else { - this.agent = 'apple'; + if(browser.versions.macos){ + this.agent=''; + }else { + this.agent = 'apple'; + } } } diff --git a/fir_download/src/components/FirDownload.vue b/fir_download/src/components/FirDownload.vue index ceafefd..6b19746 100644 --- a/fir_download/src/components/FirDownload.vue +++ b/fir_download/src/components/FirDownload.vue @@ -432,7 +432,8 @@ android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器 iPad: u.indexOf('iPad') > -1, //是否iPad - webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部 + webApp: u.indexOf('Safari') === -1, //是否web应该程序,没有头部与底部 + macos: u.indexOf('Mac OS') > -1 }; }(), language: (navigator.browserLanguage || navigator.language).toLowerCase() @@ -443,7 +444,11 @@ this.agent = 'wxapple'; //微信 } else { - this.agent = 'apple'; + if(browser.versions.macos){ + this.agent=''; + }else { + this.agent = 'apple'; + } } }