This commit is contained in:
sylor_huang@126.com 2020-09-29 14:47:45 +08:00
parent 876a1ccc3c
commit 5b627f787f
2 changed files with 17 additions and 8 deletions

View File

@ -58,8 +58,8 @@ export function initAxiosInterceptors(props) {
initOnlineOfflineListener() initOnlineOfflineListener()
// TODO 避免重复的请求 https://github.com/axios/axios#cancellation // TODO 避免重复的请求 https://github.com/axios/axios#cancellation
var var
// proxy = "http://localhost:3000" proxy = "http://localhost:3000"
proxy = "https://testforgeplus.trustie.net" // proxy = "https://testforgeplus.trustie.net"
const requestMap = {}; const requestMap = {};
window.setfalseInRequestMap = function (keyName) { window.setfalseInRequestMap = function (keyName) {

View File

@ -184,12 +184,21 @@ class CoderRootFileDetail extends Component {
<div> <div>
{readOnly ? ( {readOnly ? (
<span> <span>
<a onClick={() => this.EditFile(false)} className="ml20"> {
<i className="iconfont icon-bianji1 font-15 color-grey-6"></i> detail.direct_download ?
</a> ""
<a onClick={() => this.DownLoadFile(detail.download_url)} className="ml20"> :
<i className="iconfont icon-xiazai1 font-15 color-grey-6"></i> <span>
</a> <a onClick={() => this.DownLoadFile(detail.download_url)} className="ml20">
<i className="iconfont icon-xiazai1 font-15 color-grey-6"></i>
</a>
<a onClick={() => this.EditFile(false)} className="ml20">
<i className="iconfont icon-bianji1 font-15 color-grey-6"></i>
</a>
</span>
}
</span> </span>
) : ( ) : (