From 926339043d447d36f21694dd27fadae94bfb3fda Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 6 Mar 2020 22:57:25 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/developer/newOrEditTask/index.js | 38 +++++++++----------
.../modules/developer/studentStudy/index.js | 2 +-
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/public/react/src/modules/developer/newOrEditTask/index.js b/public/react/src/modules/developer/newOrEditTask/index.js
index 565d6af30..b95668413 100644
--- a/public/react/src/modules/developer/newOrEditTask/index.js
+++ b/public/react/src/modules/developer/newOrEditTask/index.js
@@ -1,7 +1,7 @@
/*
* @Description: 新建或编辑任务
- * @Author: tangjiang
- * @Date: 2019-11-15 16:38:34
+ * @Author: tangjiang
+ * @Date: 2019-11-15 16:38:34
* @Last Modified by: tangjiang
* @Last Modified time: 2019-11-19 23:23:41
*/
@@ -20,7 +20,7 @@ import actions from '../../../redux/actions';
// import {ModalConfirm} from '../../../common/components/ModalConfirm';
const NewOrEditTask = (props) => {
- const {
+ const {
publishLoading,
handlePublish,
// testCases = [],
@@ -41,7 +41,7 @@ const NewOrEditTask = (props) => {
courseQuestions
// updateTestAndValidate,
} = props;
-
+
// 表单提交
const handleSubmitForm = () => {
// 改变loading状态
@@ -53,7 +53,7 @@ const NewOrEditTask = (props) => {
props.handleFormSubmit(props); // 提交表单
}
};
-
+
useEffect(() => {
// 获取用户信息
getUserInfoForNew();
@@ -121,7 +121,7 @@ const NewOrEditTask = (props) => {
// 清空描述信息
toStore('oj_description', '');
// props.history.push('/problems');
- props.history.push(`/question?${props.searchParams}`);
+ props.history.push(`/problemset?${props.searchParams}`);
}
// 发布
@@ -163,8 +163,8 @@ const NewOrEditTask = (props) => {
onClick={handleClickCancel}
style={{ background: '#666666', color: '#fff', border: 'none' }}
>取消
-
@@ -174,14 +174,14 @@ const NewOrEditTask = (props) => {
// 发布/模拟挑战
const renderPubOrFight = () => {
const pubButton = isPublish
- ? ()
- : ();
@@ -191,13 +191,13 @@ const NewOrEditTask = (props) => {
) : (
);
-
+
if (isPublish) {
return (
{pubButton}
-
@@ -207,8 +207,8 @@ const NewOrEditTask = (props) => {
} else {
return (
-
@@ -217,7 +217,7 @@ const NewOrEditTask = (props) => {
);
}
-
+
}
// 渲染退出
@@ -296,7 +296,7 @@ const mapDispatchToProps = (dispatch) => ({
clearOJFormStore: () => dispatch(actions.clearOJFormStore()),
// 按钮状态
changeSubmitLoadingStatus: (flag) => dispatch(actions.changeSubmitLoadingStatus(flag)),
- // 发布按钮状态
+ // 发布按钮状态
changePublishLoadingStatus: (flag) => dispatch(actions.changePublishLoadingStatus(flag)),
// 测试用例及验证
updateTestAndValidate: (obj) => dispatch(actions.updateTestAndValidate(obj)),
diff --git a/public/react/src/modules/developer/studentStudy/index.js b/public/react/src/modules/developer/studentStudy/index.js
index 2af70efdf..e6a11482c 100644
--- a/public/react/src/modules/developer/studentStudy/index.js
+++ b/public/react/src/modules/developer/studentStudy/index.js
@@ -129,7 +129,7 @@ function StudentStudy (props) {
changeShowOrHideControl(false);
props.saveEditorCodeForDetail('');
// props.history.push('/problems');
- props.history.push(`/question?${searchParams}`);
+ props.history.push(`/problemset?${searchParams}`);
}
return (