From 54443733316f8e19596894b6e1e853a8d44949dc Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 24 Jun 2019 17:41:36 +0800 Subject: [PATCH] ConnectProject --- .../courses/busyWork/CommonWorkItem.js | 19 +++++++++++++- .../courses/busyWork/ConnectProject.js | 26 ++++++++++++++++--- .../modules/courses/busyWork/commonWork.js | 23 +++++++++++++++- 3 files changed, 63 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkItem.js b/public/react/src/modules/courses/busyWork/CommonWorkItem.js index 7f5bea2da..2ac4761e1 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkItem.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkItem.js @@ -97,6 +97,13 @@ class CommonWorkItem extends Component{ setupdate = () => { } + toCreateProject = () => { + if (window.location.port == 3007) { + window.location.href = '/testbdweb.educoder.net/projects/new' + } else { + window.location.href = '/projects/new' + } + } render(){ let { mainList,workType }=this.props; const { aModalVisible, fileList, revise_reason } = this.state @@ -195,12 +202,22 @@ class CommonWorkItem extends Component{