Skip to content

Commit

Permalink
Merge pull request #472 from clddup/master
Browse files Browse the repository at this point in the history
fix: 修复富文本编辑器初始化时, 报错 Error: Cannot find a descendant at path [0,1] i…
  • Loading branch information
kailong321200875 authored May 24, 2024
2 parents 030328a + a65d5fd commit 138ffba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Editor/src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ watch(
(val: string) => {
if (val === unref(valueHtml)) return
valueHtml.value = val
},
{
immediate: true
}
)
Expand All @@ -51,6 +48,7 @@ watch(
const handleCreated = (editor: IDomEditor) => {
editorRef.value = editor
valueHtml.value = props.modelValue
}
// 编辑器配置
Expand Down

0 comments on commit 138ffba

Please sign in to comment.