From 5c2dd01e835e66e96f19b8296af62472e6411fa8 Mon Sep 17 00:00:00 2001 From: Advoster <648542313@qq.com> Date: Thu, 14 Jun 2018 00:54:01 +0800 Subject: [PATCH] Update register.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复注册表单提交的数据未添加到POST请求的Body中的问题 --- src/models/register.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/register.js b/src/models/register.js index 54c49633..57a97838 100644 --- a/src/models/register.js +++ b/src/models/register.js @@ -10,8 +10,8 @@ export default { }, effects: { - *submit(_, { call, put }) { - const response = yield call(fakeRegister); + *submit({ payload }, { call, put }) { + const response = yield call(fakeRegister, payload); yield put({ type: 'registerHandle', payload: response, -- GitLab