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 (