修改
This commit is contained in:
@@ -391,6 +391,12 @@
|
||||
computed,
|
||||
getCurrentInstance
|
||||
} from 'vue'
|
||||
const props = defineProps({
|
||||
content: {
|
||||
type: String,
|
||||
},
|
||||
|
||||
})
|
||||
const emit = defineEmits(['init-data'])
|
||||
// 页面元素
|
||||
const {
|
||||
@@ -441,7 +447,7 @@
|
||||
editorCtx.value = res.context
|
||||
// 初始化HTML内容
|
||||
editorCtx.value.setContents({//赋值
|
||||
html: editorContent.html
|
||||
html: props.content?props.content:editorContent.html
|
||||
})
|
||||
}).exec()
|
||||
// #endif
|
||||
|
||||
Reference in New Issue
Block a user