From 986e179bba8da1f1ae3ba7be801be59f457eb064 Mon Sep 17 00:00:00 2001 From: nineven Date: Fri, 3 Apr 2020 17:39:55 +0800 Subject: [PATCH] fix thread url download --- fir_client/src/components/FirDownload.vue | 4 +++- fir_client/src/restful/index.js | 4 ++-- fir_download/src/components/FirDownload.vue | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) 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 {