From 1b6a68438ff808ad8e98e8c9e50f41086aacca5b Mon Sep 17 00:00:00 2001 From: Harry Yang Date: Wed, 4 Jan 2023 19:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=BF=94=E5=9B=9EJSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/admin/business/process-detail.ftl | 6 ++---- .../resources/templates/admin/business/process-review.ftl | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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()