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
e883398b
Commit
e883398b
authored
Sep 08, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
0fdb080f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+4
-4
No files found.
src/pages/commodity/products/addProducts.tsx
View file @
e883398b
...
...
@@ -256,19 +256,19 @@ const AddProducts: React.FC<{}> = (props) => {
PublicApi
.
postProductCommoditySaveOrUpdateCommodity
(
_params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
){
setIsEnableCheck
(
false
)
//
setIsDisableSaveBtn(false)
setIsDisableSaveBtn
(
false
)
setReponseId
(
res
.
data
)
history
.
goBack
()
}
})
}).
then
(
e
=>
{
setIs
EnableCheck
(
false
)
setIs
DisableSaveBtn
(
false
)
if
(
e
)
message
.
error
(
e
.
message
)
console
.
log
(
e
,
'e'
)
}).
catch
(
error
=>
{
setIs
EnableCheck
(
false
)
setIs
DisableSaveBtn
(
false
)
if
(
error
.
messge
)
message
.
error
(
error
.
message
)
else
...
...
@@ -277,7 +277,7 @@ const AddProducts: React.FC<{}> = (props) => {
console
.
log
(
error
,
'_error'
)
})
}
catch
(
e
){
setIs
EnableCheck
(
false
)
setIs
DisableSaveBtn
(
false
)
message
.
error
(
e
.
message
)
console
.
log
(
e
,
'error'
)
...
...
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