feat: 增加下载地址

This commit is contained in:
zhangds 2024-05-17 15:43:06 +08:00
parent 71d3fefc83
commit a39d571d97
1 changed files with 2 additions and 1 deletions

View File

@ -125,9 +125,10 @@ export default class downloadlist extends React.Component {
} }
exportFn(task_id) { exportFn(task_id) {
// this.setState({ loading_visible: true }) this.setState({ loading_visible: true })
getOrderDownloadUrl({ task_id }) getOrderDownloadUrl({ task_id })
.then((res) => { .then((res) => {
this.setState({ loading_visible: false })
window.location.href = res.data window.location.href = res.data
}) })
.catch((err) => {}) .catch((err) => {})