Commit 5c2dd01e authored by Advoster's avatar Advoster Committed by 陈帅

Update register.js

修复注册表单提交的数据未添加到POST请求的Body中的问题
parent 1da5d11c
...@@ -10,8 +10,8 @@ export default { ...@@ -10,8 +10,8 @@ export default {
}, },
effects: { effects: {
*submit(_, { call, put }) { *submit({ payload }, { call, put }) {
const response = yield call(fakeRegister); const response = yield call(fakeRegister, payload);
yield put({ yield put({
type: 'registerHandle', type: 'registerHandle',
payload: response, payload: response,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment