修改下载页面,第三方应用不自动跳转问题

dependabot/npm_and_yarn/fir_admin/ws-5.2.3
youngS 3 years ago
parent cad1a77f8f
commit 3c4e5aa6e3
  1. 13
      fir_client/src/components/FirDownload.vue
  2. 13
      fir_client/src/components/ShortDownload.vue

@ -581,9 +581,16 @@
} }
if (this.currentappinfo.wxredirect) { if (this.mcurrentappinfo.binary_url && !this.wrong) {
if (this.mcurrentappinfo.binary_url && this.agent !== '' && this.wrong === false) { if (this.agent === 'wxandroid' || this.agent === 'wxapple') {
window.location.href = this.mcurrentappinfo.binary_url if (this.currentappinfo.wxredirect) {
window.location.href = this.mcurrentappinfo.binary_url;
return;
}
}
if (this.agent === 'apple' || this.agent === 'android') {
window.location.href = this.mcurrentappinfo.binary_url;
return;
} }
} }
if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) { if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) {

@ -563,9 +563,16 @@
} }
if (this.currentappinfo.wxredirect) { if (this.mcurrentappinfo.binary_url && !this.wrong) {
if (this.mcurrentappinfo.binary_url && this.agent !== '' && this.wrong === false) { if (this.agent === 'wxandroid' || this.agent === 'wxapple') {
window.location.href = this.mcurrentappinfo.binary_url if (this.currentappinfo.wxredirect) {
window.location.href = this.mcurrentappinfo.binary_url;
return;
}
}
if (this.agent === 'apple' || this.agent === 'android') {
window.location.href = this.mcurrentappinfo.binary_url;
return;
} }
} }
if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) { if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) {

Loading…
Cancel
Save