Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

# Conflicts:
#	public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
dev_admin
杨树林 6 years ago
parent ccbc6aa7b3
commit ff110d6163

@ -171,7 +171,8 @@ class Testpapersettinghomepage extends Component{
} }
console.log("170"); console.log("170");
console.log(params); console.log(params);
axios.get(url+`?${queryString.stringify(params)}`+ '&export=true').then((response) => { const urll=url+`?${queryString.stringify(params)}`;
axios.get(urll+ '&export=true').then((response) => {
if(response===undefined){ if(response===undefined){
return return
} }
@ -195,13 +196,13 @@ class Testpapersettinghomepage extends Component{
}else { }else {
this.setState({ donwloading: true }) this.setState({ donwloading: true })
downloadFile({ downloadFile({
url: url+`?${queryString.stringify(params)}`, url: urll,
successCallback: (url) => { successCallback: (url) => {
this.setState({ donwloading: false }); this.setState({ donwloading: false })
console.log('successCallback') console.log('successCallback')
}, },
failCallback: (responseHtml, url) => { failCallback: (responseHtml, url) => {
this.setState({ donwloading: false }); this.setState({ donwloading: false })
console.log('failCallback') console.log('failCallback')
} }
}) })

Loading…
Cancel
Save