Merge pull request #472 from clddup/master
fix: 修复富文本编辑器初始化时, 报错 Error: Cannot find a descendant at path [0,1] i…
This commit is contained in:
commit
138ffba289
|
@ -35,9 +35,6 @@ watch(
|
||||||
(val: string) => {
|
(val: string) => {
|
||||||
if (val === unref(valueHtml)) return
|
if (val === unref(valueHtml)) return
|
||||||
valueHtml.value = val
|
valueHtml.value = val
|
||||||
},
|
|
||||||
{
|
|
||||||
immediate: true
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -51,6 +48,7 @@ watch(
|
||||||
|
|
||||||
const handleCreated = (editor: IDomEditor) => {
|
const handleCreated = (editor: IDomEditor) => {
|
||||||
editorRef.value = editor
|
editorRef.value = editor
|
||||||
|
valueHtml.value = props.modelValue
|
||||||
}
|
}
|
||||||
|
|
||||||
// 编辑器配置
|
// 编辑器配置
|
||||||
|
|
Loading…
Reference in New Issue