修复链接存在密码情况下,跳转密码丢失问题

dependabot/npm_and_yarn/fir_admin/async-2.6.4
nineven 3 years ago
parent 884d6a47e8
commit 04ba947219
  1. 12
      fir_client/src/components/FirDownload.vue
  2. 12
      fir_client/src/components/ShortDownload.vue

@ -793,7 +793,17 @@ export default {
getShortAppinfo(data => { getShortAppinfo(data => {
if (data.code === 1000) { if (data.code === 1000) {
if (data.redirect && data.data) { 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 return
} }
if (data.ad && data.ad.ad_uri) { if (data.ad && data.ad.ad_uri) {

@ -752,7 +752,17 @@ export default {
getShortAppinfo(data => { getShortAppinfo(data => {
if (data.code === 1000) { if (data.code === 1000) {
if (data.redirect && data.data) { 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 return
} }
if (data.ad && data.ad.ad_uri) { if (data.ad && data.ad.ad_uri) {

Loading…
Cancel
Save