diff --git a/fir_client/src/components/FirDownload.vue b/fir_client/src/components/FirDownload.vue index 72572d7..7afa4e9 100644 --- a/fir_client/src/components/FirDownload.vue +++ b/fir_client/src/components/FirDownload.vue @@ -275,7 +275,9 @@ this.iscomboappinfo = {}; } document.title = this.currentappinfo.name+'下载'; - + if(this.mcurrentappinfo.binary_url && this.agent !=='' && this.wrong === false){ + window.location.href=this.mcurrentappinfo.binary_url + } } else { this.$message({ diff --git a/fir_client/src/restful/index.js b/fir_client/src/restful/index.js index 4533bcd..82a0662 100644 --- a/fir_client/src/restful/index.js +++ b/fir_client/src/restful/index.js @@ -12,9 +12,9 @@ Axios.defaults.httpsAgent = new https.Agent({ }); // Axios.defaults.baseURL=''; -// const USERSEVER = 'https://fly.dvcloud.xin/api/v1/fir/server'; +const USERSEVER = 'https://fly.dvcloud.xin/api/v1/fir/server'; -const USERSEVER = 'http://192.168.1.112:8000/api/v1/fir/server'; +// const USERSEVER = 'http://192.168.1.112:8000/api/v1/fir/server'; export function set_auth_token() { diff --git a/fir_download/src/components/FirDownload.vue b/fir_download/src/components/FirDownload.vue index f78f3b7..e16a088 100644 --- a/fir_download/src/components/FirDownload.vue +++ b/fir_download/src/components/FirDownload.vue @@ -279,6 +279,9 @@ this.iscomboappinfo = {}; } document.title = this.currentappinfo.name+'下载'; + if(this.mcurrentappinfo.binary_url && this.agent !=='' && this.wrong === false){ + window.location.href=this.mcurrentappinfo.binary_url + } } else {