diff --git a/src/models/form.js b/src/models/form.js index d849f802a25bc162490e8e74fb909ef03de8f267..64a1d49794b9b059564eadf7fce0bb9dbde5a8a3 100644 --- a/src/models/form.js +++ b/src/models/form.js @@ -25,7 +25,7 @@ export default { type: 'saveStepFormData', payload, }); - yield put(routerRedux.push('/Forms/StepForm/Step3')); + yield put(routerRedux.push('/form/step-form/result')); }, *submitAdvancedForm({ payload }, { call }) { yield call(fakeSubmitForm, payload); diff --git a/src/pages/Forms/StepForm/Step1.js b/src/pages/Forms/StepForm/Step1.js index 0f5723969b273781c38e491f01dc4334662c8b06..5082c1a31c428b8dc88975687e36fb57d685df82 100644 --- a/src/pages/Forms/StepForm/Step1.js +++ b/src/pages/Forms/StepForm/Step1.js @@ -27,7 +27,7 @@ class Step1 extends React.PureComponent { type: 'form/saveStepFormData', payload: values, }); - dispatch(routerRedux.push('/Forms/StepForm/Step2')); + dispatch(routerRedux.push('/form/step-form/confirm')); } }); }; diff --git a/src/pages/Forms/StepForm/Step2.js b/src/pages/Forms/StepForm/Step2.js index 9daa3fe0cd1195b075170d63badd79ce0bb854d4..54fe43c148d4108e8544a772525391d71e37cfb6 100644 --- a/src/pages/Forms/StepForm/Step2.js +++ b/src/pages/Forms/StepForm/Step2.js @@ -20,7 +20,7 @@ class Step2 extends React.PureComponent { const { form, data, dispatch, submitting } = this.props; const { getFieldDecorator, validateFields } = form; const onPrev = () => { - dispatch(routerRedux.push('/Forms/StepForm')); + dispatch(routerRedux.push('/form/step-form/info')); }; const onValidateForm = e => { e.preventDefault(); diff --git a/src/pages/Forms/StepForm/Step3.js b/src/pages/Forms/StepForm/Step3.js index eb8afeac16bd76818ccea57281d8e03b8f45fb19..b529d6a41c1baad997b862f3a39766a4a4fb8ac1 100644 --- a/src/pages/Forms/StepForm/Step3.js +++ b/src/pages/Forms/StepForm/Step3.js @@ -9,7 +9,7 @@ class Step3 extends React.PureComponent { render() { const { dispatch, data } = this.props; const onFinish = () => { - dispatch(routerRedux.push('/Forms/StepForm')); + dispatch(routerRedux.push('/form/step-form/info')); }; const information = (