Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
前端-黄佳鑫
jinfa-platform
Commits
89f42eff
Commit
89f42eff
authored
Aug 20, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复注册无法提交表单
parent
981c80a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
register.tsx
src/pages/user/register.tsx
+5
-3
No files found.
src/pages/user/register.tsx
View file @
89f42eff
...
...
@@ -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'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment