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

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

@ -581,9 +581,16 @@
} }
if (this.mcurrentappinfo.binary_url && !this.wrong) {
if (this.agent === 'wxandroid' || this.agent === 'wxapple') {
if (this.currentappinfo.wxredirect) { if (this.currentappinfo.wxredirect) {
if (this.mcurrentappinfo.binary_url && this.agent !== '' && this.wrong === false) { window.location.href = this.mcurrentappinfo.binary_url;
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.mcurrentappinfo.binary_url && !this.wrong) {
if (this.agent === 'wxandroid' || this.agent === 'wxapple') {
if (this.currentappinfo.wxredirect) { if (this.currentappinfo.wxredirect) {
if (this.mcurrentappinfo.binary_url && this.agent !== '' && this.wrong === false) { window.location.href = this.mcurrentappinfo.binary_url;
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