优化 公告图片问题

This commit is contained in:
wuxw 2022-06-17 01:25:45 +08:00
parent c5ff771ec8
commit 46a74633ca
2 changed files with 6 additions and 3 deletions

View File

@ -266,7 +266,8 @@
if (res.status == 200) { if (res.status == 200) {
var data = JSON.parse(json); var data = JSON.parse(json);
//关闭model //关闭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; return;
} }
vc.toast(json); vc.toast(json);

View File

@ -213,8 +213,10 @@
if (res.status == 200) { if (res.status == 200) {
var data = JSON.parse(json); var data = JSON.parse(json);
//关闭model //关闭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);
return; $summernote.summernote('insertImage', data.url);
return;
} }
vc.toast(json); vc.toast(json);
}, },