From 04ba947219bcd8f2cb49899cbe8b7cad1a013330 Mon Sep 17 00:00:00 2001 From: nineven Date: Sat, 16 Apr 2022 15:23:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=93=BE=E6=8E=A5=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=AF=86=E7=A0=81=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=AF=86=E7=A0=81=E4=B8=A2=E5=A4=B1=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/FirDownload.vue | 12 +++++++++++- fir_client/src/components/ShortDownload.vue | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/fir_client/src/components/FirDownload.vue b/fir_client/src/components/FirDownload.vue index 0746d6b..7c57ccc 100644 --- a/fir_client/src/components/FirDownload.vue +++ b/fir_client/src/components/FirDownload.vue @@ -793,7 +793,17 @@ export default { getShortAppinfo(data => { if (data.code === 1000) { if (data.redirect && data.data) { - window.location.href = data.data; + let href = data.data; + if (this.$route.query.password) { + if (href.indexOf('?') !== -1) { + if (href.indexOf('password=') === -1) { + href = href + '&password=' + this.$route.query.password + } + } else { + href = href + '?password=' + this.$route.query.password + } + } + window.location.href = href; return } if (data.ad && data.ad.ad_uri) { diff --git a/fir_client/src/components/ShortDownload.vue b/fir_client/src/components/ShortDownload.vue index bdbed7f..0c186a4 100644 --- a/fir_client/src/components/ShortDownload.vue +++ b/fir_client/src/components/ShortDownload.vue @@ -752,7 +752,17 @@ export default { getShortAppinfo(data => { if (data.code === 1000) { if (data.redirect && data.data) { - window.location.href = data.data; + let href = data.data; + if (this.$route.query.password) { + if (href.indexOf('?') !== -1) { + if (href.indexOf('password=') === -1) { + href = href + '&password=' + this.$route.query.password + } + } else { + href = href + '?password=' + this.$route.query.password + } + } + window.location.href = href; return } if (data.ad && data.ad.ad_uri) {