diff --git a/fir_client/src/components/FirDownload.vue b/fir_client/src/components/FirDownload.vue index 0c623e8..af946ae 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 && u.indexOf('Macintosh') > -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..b5ff263 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 && u.indexOf('Macintosh') > -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'; + } } }