Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin-trade
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
admin-trade
Commits
bd233ac9
Commit
bd233ac9
authored
Jun 08, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d2cd6295
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
resources/js/Pages/Home/components/StartTrade/index.tsx
+2
-1
resources/js/Pages/Spot/components/StartTrade/index.tsx
+3
-1
No files found.
resources/js/Pages/Home/components/StartTrade/index.tsx
View file @
bd233ac9
...
...
@@ -81,6 +81,7 @@ export default class StartTrade extends Component<any, any> {
onReset
=
()
=>
{
const
items
=
Object
.
keys
(
this
.
state
);
items
.
forEach
((
item
:
any
)
=>
{
if
(
!
noSubmitFields
.
includes
(
item
))
{
if
(
typeof
this
.
state
[
item
]
===
'string'
)
{
this
.
setState
({
[
item
]:
''
...
...
@@ -94,7 +95,7 @@ export default class StartTrade extends Component<any, any> {
[
item
]:
[]
})
}
}
})
console
.
log
(
this
.
state
)
}
...
...
resources/js/Pages/Spot/components/StartTrade/index.tsx
View file @
bd233ac9
...
...
@@ -70,6 +70,8 @@ export default class TradeDialog extends Component<any, any> {
onReset
=
()
=>
{
const
items
=
Object
.
keys
(
this
.
state
);
items
.
forEach
((
item
:
any
)
=>
{
// 跳过不提交的字段
if
(
!
noSubmitFields
.
includes
(
item
))
{
if
(
typeof
this
.
state
[
item
]
===
'string'
)
{
this
.
setState
({
[
item
]:
''
...
...
@@ -83,7 +85,7 @@ export default class TradeDialog extends Component<any, any> {
[
item
]:
[]
})
}
}
})
}
...
...
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