|
|
|
@ -26,7 +26,6 @@ import { notification } from "antd";
|
|
|
|
|
export const startProgramQuestion = (id, props) => {
|
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
|
const {searchParams} = getState().ojFormReducer;
|
|
|
|
|
console.log(searchParams);
|
|
|
|
|
fetchStartProgram(id).then(res => {
|
|
|
|
|
const { status, data } = res;
|
|
|
|
|
if (status === 200) {
|
|
|
|
@ -50,7 +49,7 @@ export const startProgramQuestion = (id, props) => {
|
|
|
|
|
// console.log(path);
|
|
|
|
|
// props.history.push(`/myproblems/${identifier}`);
|
|
|
|
|
props.history.push({
|
|
|
|
|
pathname: `/myproblems/${identifier}${searchParams}`,
|
|
|
|
|
pathname: `/myproblems/${identifier}/${searchParams}`,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|