1
This commit is contained in:
1
dist/src__pages__goods__$id__create.b95fbee4.async.js
vendored
Normal file
1
dist/src__pages__goods__$id__create.b95fbee4.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__goods__$id__update.8d63f00b.async.js
vendored
Normal file
1
dist/src__pages__goods__$id__update.8d63f00b.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
578
dist/umi.662120bd.js
vendored
Normal file
578
dist/umi.662120bd.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -64,6 +64,7 @@ export default () => {
|
||||
setRow(fields);
|
||||
let data = JSON.parse(JSON.stringify(fields))
|
||||
// data.details = editorState.toHTML()
|
||||
data.isUp = data.isUp ? 1 : 0
|
||||
data.picture = JSON.stringify(data.picture)
|
||||
data.details = JSON.stringify(data.details)
|
||||
const { success } = await goodsAdd({ ...data });
|
||||
|
||||
@@ -67,7 +67,8 @@ export default () => {
|
||||
const handleCreate = async (fields) => {
|
||||
setRow(fields);
|
||||
let data = JSON.parse(JSON.stringify(fields))
|
||||
// data.details = editorState.toHTML()
|
||||
// data.details = editorState.toHTML()\
|
||||
data.isUp = data.isUp ? 1 : 0
|
||||
data.picture = JSON.stringify(data.picture)
|
||||
data.details = JSON.stringify(data.details)
|
||||
const { success } = await goodsUpdate({ ...data });
|
||||
|
||||
Reference in New Issue
Block a user