From eb7d9e628d3fe88284fdb7b74fa4509cfbc4bdb3 Mon Sep 17 00:00:00 2001 From: harry Date: Sun, 8 Mar 2020 20:49:29 +0800 Subject: [PATCH] =?UTF-8?q?=20fix=20=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=B8=8E=E7=BC=96=E8=BE=91=E4=BB=A3=E7=A0=81=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/controlSetting/index.js | 22 ++++++++++++++----- .../modules/developer/studentStudy/index.js | 15 +------------ .../developer/studentStudy/rightpane/index.js | 3 --- public/react/src/redux/actions/ojForUser.js | 4 ++-- 4 files changed, 20 insertions(+), 24 deletions(-) diff --git a/public/react/src/modules/developer/components/controlSetting/index.js b/public/react/src/modules/developer/components/controlSetting/index.js index 9c79e92e9..5d261445c 100644 --- a/public/react/src/modules/developer/components/controlSetting/index.js +++ b/public/react/src/modules/developer/components/controlSetting/index.js @@ -18,8 +18,7 @@ const { TabPane } = Tabs; const ControlSetting = (props) => { const { - hack, - userCode, + editor_code, inputValue, loading, submitLoading, @@ -59,7 +58,7 @@ const ControlSetting = (props) => { // 调试代码 const handleTestCode = (e) => { - if (!userCode) { + if (!editor_code) { notification.warning({ message: '提示', description: '代码块内容不能为空' @@ -78,7 +77,7 @@ const ControlSetting = (props) => { // 提交 const handleSubmit = (e) => { e.preventDefault(); - if (!userCode) { + if (!editor_code) { notification.warning({ message: '提示', description: '代码块内容不能为空' @@ -134,11 +133,17 @@ const ControlSetting = (props) => { +======= + > + 控制台 + +>>>>>>> 1b23635... fix 提交代码与编辑代码不一致情况

@@ -163,10 +171,14 @@ const ControlSetting = (props) => { const mapStateToProps = (state) => { const { commonReducer, ojForUserReducer } = state; const { loading, excuteState, submitLoading, showOrHideControl } = commonReducer; +<<<<<<< HEAD const { commitTestRecordDetail, hack, userCode } = ojForUserReducer; +======= + const { commitTestRecordDetail, hack, editor_code } = ojForUserReducer; +>>>>>>> 1b23635... fix 提交代码与编辑代码不一致情况 return { hack, - userCode, + editor_code, loading, submitLoading, excuteState, diff --git a/public/react/src/modules/developer/studentStudy/index.js b/public/react/src/modules/developer/studentStudy/index.js index 8bb6c0411..2a588b034 100644 --- a/public/react/src/modules/developer/studentStudy/index.js +++ b/public/react/src/modules/developer/studentStudy/index.js @@ -108,18 +108,12 @@ function StudentStudy(props) { return (
- {/*
- 用户头像 - - {(mygetHelmetapi &&mygetHelmetapi.name) || ''} - -
*/} +
{hack.name}
- {/* to={`/problems/${_hack_id}/edit`} */} handleClickEditor(hack.identifier)} @@ -127,16 +121,9 @@ function StudentStudy(props) { > 编辑 - {/* to="/problems" */} 退出 - {/* - */}
diff --git a/public/react/src/modules/developer/studentStudy/rightpane/index.js b/public/react/src/modules/developer/studentStudy/rightpane/index.js index 62fc56783..c16aeca70 100644 --- a/public/react/src/modules/developer/studentStudy/rightpane/index.js +++ b/public/react/src/modules/developer/studentStudy/rightpane/index.js @@ -114,9 +114,6 @@ const RightPane = (props) => { onClick={handleClickNote} > - {/*
-