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