From 481efb04771c164d5ed0b331b69f0b76485039ea Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Wed, 28 Aug 2019 14:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../busyWork/common/WorkDetailPageHeader.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js index 4177be8a4..488513c48 100644 --- a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js +++ b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js @@ -31,15 +31,16 @@ class WorkDetailPageHeader extends Component{ } goback = () => { - // let workId=this.props.match.params.workId; - // - // if ( window.location.pathname.indexOf('appraise') == -1) { - // let category_id= this.props.category.category_id; - // this.props.toListPage(this.props.match.params, category_id) - // } else { - // this.props.toWorkListPage(this.props.match.params, this.props.match.params.category_id) - // } - this.props.history.goBack() + let workId=this.props.match.params.workId; + + if ( window.location.pathname.indexOf('appraise') == -1) { + let category_id= this.props.category.category_id; + this.props.toListPage(this.props.match.params, category_id) + } else { + this.props.toWorkListPage(this.props.match.params, workId) + // this.props.match.params.category_id + } + // this.props.history.goBack() } // 补交附件 Cancelvisible=()=>{