From 46a74633ca1ec295e6b7716acffe4c03904a34e3 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Fri, 17 Jun 2022 01:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/components/common/addNoticeView/addNoticeView.js | 3 ++- public/components/common/editNoticeView/editNoticeView.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/components/common/addNoticeView/addNoticeView.js b/public/components/common/addNoticeView/addNoticeView.js index 61910b13b..3ecdd1226 100755 --- a/public/components/common/addNoticeView/addNoticeView.js +++ b/public/components/common/addNoticeView/addNoticeView.js @@ -266,7 +266,8 @@ if (res.status == 200) { var data = JSON.parse(json); //关闭model - $summernote.summernote('insertImage', "/callComponent/download/getFile/file?fileId=" + data.fileId + "&communityId=" + vc.getCurrentCommunity().communityId); + //$summernote.summernote('insertImage', "/callComponent/download/getFile/file?fileId=" + data.fileId + "&communityId=" + vc.getCurrentCommunity().communityId); + $summernote.summernote('insertImage', data.url); return; } vc.toast(json); diff --git a/public/components/common/editNoticeView/editNoticeView.js b/public/components/common/editNoticeView/editNoticeView.js index 82077eeb0..8c7b15026 100755 --- a/public/components/common/editNoticeView/editNoticeView.js +++ b/public/components/common/editNoticeView/editNoticeView.js @@ -213,8 +213,10 @@ if (res.status == 200) { var data = JSON.parse(json); //关闭model - $summernote.summernote('insertImage', "/callComponent/download/getFile/file?fileId=" + data.fileId + "&communityId=" + vc.getCurrentCommunity().communityId); - return; + // $summernote.summernote('insertImage', "/callComponent/download/getFile/file?fileId=" + data.fileId + "&communityId=" + vc.getCurrentCommunity().communityId); + $summernote.summernote('insertImage', data.url); + + return; } vc.toast(json); },