From b860e61e006a842839a969a28eb299ee0b51b563 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 2 Sep 2019 16:29:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/busyWork/CommonWorkDetailIndex.js | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js index 0e86cf420..5693b3788 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js @@ -129,20 +129,21 @@ class CommonWorkDetailIndex extends Component{ }) } }else { - this.props.showNotification(`正在下载中`); - - this.setState({ donwloading: true }) - downloadFile({ - url: url, - successCallback: (url) => { - this.setState({ donwloading: false }) - console.log('successCallback') - }, - failCallback: (responseHtml, url) => { - this.setState({ donwloading: false }) - console.log('failCallback') - } - }) + this.props.slowDownload(url) + + // this.props.showNotification(`正在下载中`); + // this.setState({ donwloading: true }) + // downloadFile({ + // url: url, + // successCallback: (url) => { + // this.setState({ donwloading: false }) + // console.log('successCallback') + // }, + // failCallback: (responseHtml, url) => { + // this.setState({ donwloading: false }) + // console.log('failCallback') + // } + // }) // window.open("/api"+url, '_blank'); } }).catch((error) => {