修改流程

dev_forge
tangjiang 5 years ago
parent 7f2795a5a8
commit 7448e29bcc

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-11-23 10:53:19 * @Date: 2019-11-23 10:53:19
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-11-29 19:15:25 * @LastEditTime: 2019-11-29 20:00:34
*/ */
import './index.scss'; import './index.scss';
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-11-27 13:42:11 * @Date: 2019-11-27 13:42:11
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-11-29 19:37:24 * @LastEditTime: 2019-11-29 20:07:09
*/ */
import types from "./actionTypes"; import types from "./actionTypes";
import { Base64 } from 'js-base64'; import { Base64 } from 'js-base64';
@ -30,7 +30,7 @@ export const startProgramQuestion = (id, props) => {
payload: identifier payload: identifier
}); });
// 跳转至开启编程 // 跳转至开启编程
props.history.push(`/myproblems/${identifier}.json`); props.history.push(`/myproblems/${identifier}`);
// Redirect.to // Redirect.to
} }
}) })
@ -40,8 +40,8 @@ export const startProgramQuestion = (id, props) => {
// 获取用户编程题详情 // 获取用户编程题详情
export const getUserProgramDetail = (identifier) => { export const getUserProgramDetail = (identifier) => {
// 调用用户编程详情接口 // 调用用户编程详情接口
fetchUserProgramDetail(identifier).then(res => { return (dispatch) => {
return (dispatch) => { fetchUserProgramDetail(identifier).then(res => {
const { status, data = {} } = res; const { status, data = {} } = res;
if (status === 200) { if (status === 200) {
dispatch({ dispatch({
@ -49,8 +49,8 @@ export const getUserProgramDetail = (identifier) => {
payload: data payload: data
}); });
} }
} });
}); }
} }
/** /**

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-11-27 13:41:48 * @Date: 2019-11-27 13:41:48
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-11-28 17:34:13 * @LastEditTime: 2019-11-29 20:07:57
*/ */
import types from "../actions/actionTypes"; import types from "../actions/actionTypes";
import { Base64 } from 'js-base64'; import { Base64 } from 'js-base64';

Loading…
Cancel
Save