{/* 添加测试用例 */}
-
测试用例
+ 测试用例
- { renderTestCase() }
+ {renderTestCase()}
-
+
)
}
diff --git a/public/react/src/modules/developer/newOrEditTask/rightpane/index.js b/public/react/src/modules/developer/newOrEditTask/rightpane/index.js
index d42089d7f..33e368c4a 100644
--- a/public/react/src/modules/developer/newOrEditTask/rightpane/index.js
+++ b/public/react/src/modules/developer/newOrEditTask/rightpane/index.js
@@ -7,55 +7,25 @@
* @LastEditTime : 2019-12-27 19:33:50
*/
import './index.scss';
-import React, { useState, useEffect } from 'react';
+import React from 'react';
import { connect } from 'react-redux';
import MyMonacoEditor from '../../components/myMonacoEditor';
-// import ControlSetting from '../../components/controlSetting';
import actions from '../../../../redux/actions';
-function RightPane (props, ref) {
+function RightPane(props) {
+
+ const { code, language = 'C', saveOjFormCode } = props;
- const {
- // identifier,
- code,
- showCode,
- language,
- // onSubmitForm,
- saveOjFormCode
- } = props;
-
- // let timer = null;
- // 代码改变时,保存
const handleCodeChange = (updateCode) => {
- // if (props.identifier) {
- // // 保存用户输入的代码
- // if (!timer) {
- // timer = setInterval(() => {
- // clearInterval(timer);
- // timer = null;
-
- // }, 3000);
- // }
- // }
saveOjFormCode(updateCode);
}
- // 启动调试代码
- // const handleDebuggerCode = (value) => {
- // console.log('调用的代码调试====', value);
- // }
return (