diff --git a/src/main/resources/templates/admin/business/process-detail.ftl b/src/main/resources/templates/admin/business/process-detail.ftl index 3583ab1..73b2bb0 100644 --- a/src/main/resources/templates/admin/business/process-detail.ftl +++ b/src/main/resources/templates/admin/business/process-detail.ftl @@ -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() diff --git a/src/main/resources/templates/admin/business/process-review.ftl b/src/main/resources/templates/admin/business/process-review.ftl index e215fae..9dfb641 100644 --- a/src/main/resources/templates/admin/business/process-review.ftl +++ b/src/main/resources/templates/admin/business/process-review.ftl @@ -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()