审核成功后没有返回JSON
parent
f43207a44a
commit
1b6a68438f
|
@ -343,9 +343,7 @@
|
||||||
const mapAttachment = attachment => {
|
const mapAttachment = attachment => {
|
||||||
if (hasText(attachment)) {
|
if (hasText(attachment)) {
|
||||||
try {
|
try {
|
||||||
return JSON.parse(attachment).map(item => ({
|
return JSON.parse(attachment)
|
||||||
...item, isImage: isImage(item.name)
|
|
||||||
}))
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
@ -410,7 +408,7 @@
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify(form),
|
body: JSON.stringify(form),
|
||||||
}).then(checkStatus).then(parseJSON).then(data => {
|
}).then(checkStatus).then(data => {
|
||||||
// 关闭对话框
|
// 关闭对话框
|
||||||
this.auditFormVisible = false
|
this.auditFormVisible = false
|
||||||
this.queryTable()
|
this.queryTable()
|
||||||
|
|
|
@ -240,7 +240,7 @@
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify(form),
|
body: JSON.stringify(form),
|
||||||
}).then(checkStatus).then(parseJSON).then(data => {
|
}).then(checkStatus).then(data => {
|
||||||
// 关闭对话框
|
// 关闭对话框
|
||||||
this.auditFormVisible = false
|
this.auditFormVisible = false
|
||||||
this.queryTable()
|
this.queryTable()
|
||||||
|
|
Loading…
Reference in New Issue