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"> + + + + + } + ) : (