Commit 89f42eff authored by 前端-许佳敏's avatar 前端-许佳敏

修复注册无法提交表单

parent 981c80a1
......@@ -139,8 +139,10 @@ const UserRegistry = () => {
const handleActionBtn = () => {
// 校验后触发跳转
actions.validate('*').then(data => {
actions.submit(data => {
actions.dispatch('onFormStepNext', {})
formCache = Object.assign({}, formCache, data)
}).then(() => {
setCurrent(current + 1)
})
}
......@@ -148,7 +150,7 @@ const UserRegistry = () => {
const nextStepAction = () => {
actions.submit().then(data => {
const { values } = data
formCache = values
formCache = Object.assign({}, values, formCache)
const { businessTypeId, typeId } = values
PublicApi.getMemberMenuRegisterDetail({
businessTypeId,
......@@ -166,7 +168,7 @@ const UserRegistry = () => {
const submitForm = () => {
actions.submit().then(data => {
const { values } = data
formCache = Object.assign(values, formCache)
formCache = Object.assign({}, values, formCache)
// 写死传入的区号
formCache.countryCode = '+86'
const params = omit(formCache, ['isRead', 'confirmPassword'])
......
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