Skip to content

Commit 138ffba

Browse files
Merge pull request kailong321200875#472 from clddup/master
fix: 修复富文本编辑器初始化时, 报错 Error: Cannot find a descendant at path [0,1] i…
2 parents 030328a + a65d5fd commit 138ffba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/Editor/src/Editor.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ watch(
3535
(val: string) => {
3636
if (val === unref(valueHtml)) return
3737
valueHtml.value = val
38-
},
39-
{
40-
immediate: true
4138
}
4239
)
4340
@@ -51,6 +48,7 @@ watch(
5148
5249
const handleCreated = (editor: IDomEditor) => {
5350
editorRef.value = editor
51+
valueHtml.value = props.modelValue
5452
}
5553
5654
// 编辑器配置

0 commit comments

Comments
 (0)