|
@@ -125,7 +125,7 @@ async function handleSaveDocument(type, isAuto) {
|
|
|
if (btnLoading.value) return
|
|
|
const validRes = await formIns.value.validate()
|
|
|
if (validRes !== true) return
|
|
|
- const htmlContent = reportContentEditorIns.html.get(true)
|
|
|
+ const htmlContent = $('.fr-element').html()
|
|
|
if (!htmlContent) {
|
|
|
MessagePlugin.warning('文章内容不能为空')
|
|
|
return
|
|
@@ -179,7 +179,7 @@ async function handleSaveDocument(type, isAuto) {
|
|
|
//预览
|
|
|
function handlePreviewDoc(){
|
|
|
if(btnLoading.value) return
|
|
|
- const htmlContent = reportContentEditorIns.html.get(true)
|
|
|
+ const htmlContent = $('.fr-element').html()
|
|
|
if (!htmlContent) {
|
|
|
MessagePlugin.warning('文章内容不能为空')
|
|
|
return
|