Skip to content

Commit

Permalink
fix: 修复富文本编辑器初始化时, 报错 Error: Cannot find a descendant at path [0,1] i…
Browse files Browse the repository at this point in the history
…n node
  • Loading branch information
clddup authored May 24, 2024
1 parent 198718b commit a65d5fd
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 a65d5fd

Please sign in to comment.