审核成功后没有返回JSON

master
Harry Yang 2023-01-04 19:00:49 +08:00
parent f43207a44a
commit 1b6a68438f
2 changed files with 3 additions and 5 deletions

View File

@ -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()

View File

@ -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()