dev_aliyun_beta
杨树林 6 years ago
parent dc32a349e6
commit 6c5660484b

@ -8,7 +8,7 @@ import CourseLayoutcomponent from '../common/CourseLayoutComponent'
import Titlesearchsection from '../common/titleSearch/TitleSearchSection'
import ColorCountText from '../common/titleSearch/ColorCountText'
import { WordsBtn, trigger, on, off } from 'educoder'
import { WordsBtn, trigger, on, off ,downloadFile} from 'educoder'
import Modals from "../../modals/Modals";
import axios from 'axios'
import _ from 'lodash'
@ -152,7 +152,16 @@ class studentsList extends Component{
}
}else {
this.props.showNotification(`正在下载中`);
window.open("/api"+url, '_blank');
// window.open("/api"+url, '_blank');
downloadFile({
url: url,
successCallback: (url) => {
console.log('successCallback')
},
failCallback: (responseHtml, url) => {
console.log('failCallback')
}
})
}
}).catch((error) => {
console.log(error)

Loading…
Cancel
Save