From 5b627f787f71bd5528d078b2cd0454ee40a0f670 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Tue, 29 Sep 2020 14:47:45 +0800 Subject: [PATCH] Change --- src/AppConfig.js | 4 ++-- src/forge/Main/CoderRootFileDetail.js | 21 +++++++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index 69d3cc317..8e921d9fe 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -58,8 +58,8 @@ export function initAxiosInterceptors(props) { initOnlineOfflineListener() // TODO 避免重复的请求 https://github.com/axios/axios#cancellation var - // proxy = "http://localhost:3000" - proxy = "https://testforgeplus.trustie.net" + proxy = "http://localhost:3000" + // proxy = "https://testforgeplus.trustie.net" const requestMap = {}; window.setfalseInRequestMap = function (keyName) { diff --git a/src/forge/Main/CoderRootFileDetail.js b/src/forge/Main/CoderRootFileDetail.js index 2b7eb9aa7..164bd306f 100644 --- a/src/forge/Main/CoderRootFileDetail.js +++ b/src/forge/Main/CoderRootFileDetail.js @@ -184,12 +184,21 @@ class CoderRootFileDetail extends Component {
{readOnly ? ( - this.EditFile(false)} className="ml20"> - - - this.DownLoadFile(detail.download_url)} className="ml20"> - - + { + detail.direct_download ? + "" + : + + this.DownLoadFile(detail.download_url)} className="ml20"> + + + this.EditFile(false)} className="ml20"> + + + + + } + ) : (