审核成功后没有返回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 => { 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()

View File

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