From 8ed31376152b57de7bd5f2a4af2d76f8e06d1667 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 29 Aug 2019 17:25:37 +0800 Subject: [PATCH 1/7] onCancel --- public/react/src/modules/courses/busyWork/NewWork.js | 5 ++++- public/react/src/modules/courses/busyWork/NewWorkForm.js | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/NewWork.js b/public/react/src/modules/courses/busyWork/NewWork.js index 09b029044..4af4532dd 100644 --- a/public/react/src/modules/courses/busyWork/NewWork.js +++ b/public/react/src/modules/courses/busyWork/NewWork.js @@ -68,6 +68,9 @@ class NewWork extends Component{ console.log(error); }); } + onCancel = () => { + this.props.toListPage(this.props.match.params, category.category_id) + } doEdit = (params) => { const workId = this.props.match.params.workId @@ -140,7 +143,7 @@ class NewWork extends Component{
-