|
|
@ -45,7 +45,7 @@ class Showoldfiles extends Component{
|
|
|
|
showfiless=(url)=>{
|
|
|
|
showfiless=(url)=>{
|
|
|
|
axios({
|
|
|
|
axios({
|
|
|
|
method:'get',
|
|
|
|
method:'get',
|
|
|
|
url:url,
|
|
|
|
url:"http:"+window.location.host+url,
|
|
|
|
responseType: 'arraybuffer',
|
|
|
|
responseType: 'arraybuffer',
|
|
|
|
}).then((result)=>{
|
|
|
|
}).then((result)=>{
|
|
|
|
var binaryData = [];
|
|
|
|
var binaryData = [];
|
|
|
@ -188,7 +188,7 @@ class Showoldfiles extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
<li className="fl fontlefts">
|
|
|
|
<li className="fl fontlefts">
|
|
|
|
{allfiles.is_pdf===false?
|
|
|
|
{allfiles.is_pdf===false?
|
|
|
|
<a className={"isabox"} href={"/api"+allfiles.url} >{allfiles.title}</a>:
|
|
|
|
<a className={"isabox"} href={allfiles.url} >{allfiles.title}</a>:
|
|
|
|
<a className={"isabox"} onClick={()=>this.showfiless(allfiles.url)} >{allfiles.title}</a>
|
|
|
|
<a className={"isabox"} onClick={()=>this.showfiless(allfiles.url)} >{allfiles.title}</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<span className={"newcolor-orange fl"}>当前版本</span>
|
|
|
|
<span className={"newcolor-orange fl"}>当前版本</span>
|
|
|
@ -208,7 +208,7 @@ class Showoldfiles extends Component{
|
|
|
|
<li className="fl fontlefts">
|
|
|
|
<li className="fl fontlefts">
|
|
|
|
|
|
|
|
|
|
|
|
{item.is_pdf===false?
|
|
|
|
{item.is_pdf===false?
|
|
|
|
<a className={"isabox"} href={"/api"+item.url}>{item.title}</a>:
|
|
|
|
<a className={"isabox"} href={item.url}>{item.title}</a>:
|
|
|
|
<a className={"isabox"} onClick={()=>this.showfiless(item.url)} >{item.title}</a>
|
|
|
|
<a className={"isabox"} onClick={()=>this.showfiless(item.url)} >{item.title}</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|