forked from Gitlink/forgeplus-react
This commit is contained in:
parent
6687e05a0a
commit
8aa4f401b3
|
|
@ -4,6 +4,7 @@ import SourceFile from '../img/sourceFile.png';
|
|||
import RenderHtml from '../../../components/render-html';
|
||||
import { getSourceDetail } from '../api';
|
||||
import { Link } from 'react-router-dom';
|
||||
import axios from 'axios';
|
||||
|
||||
|
||||
function SourceDetail(props){
|
||||
|
|
@ -23,6 +24,7 @@ function SourceDetail(props){
|
|||
}
|
||||
}).catch(error=>{})
|
||||
}
|
||||
|
||||
return(
|
||||
<div className="boxmain"style={{paddingBottom:"40px"}}>
|
||||
<Breadcrumb separator=">" style={{paddingTop:"20px"}}>
|
||||
|
|
@ -43,7 +45,7 @@ function SourceDetail(props){
|
|||
<img src={SourceFile} alt="" width="20px" className="mr12"/>
|
||||
<span className="task-hide">{i.fileOriginName}</span>
|
||||
<span>{i.fileSizeInfo}</span>
|
||||
<a href="" className="f_b_load primaryColor">下载</a>
|
||||
<a href={`/file/open/download/${i.fileId}`} download className="f_b_load primaryColor">下载</a>
|
||||
</li>
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue