From a65d5fd20334307a56cb469361e8f9bd838510c9 Mon Sep 17 00:00:00 2001 From: ddup <105873086+clddup@users.noreply.github.com> Date: Fri, 24 May 2024 10:59:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E8=BE=91=E5=99=A8=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=97=B6,=20=E6=8A=A5=E9=94=99=20Error:=20Cannot=20find=20a=20?= =?UTF-8?q?descendant=20at=20path=20[0,1]=20in=20node?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Editor/src/Editor.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Editor/src/Editor.vue b/src/components/Editor/src/Editor.vue index b354db0..0bb3452 100644 --- a/src/components/Editor/src/Editor.vue +++ b/src/components/Editor/src/Editor.vue @@ -35,9 +35,6 @@ watch( (val: string) => { if (val === unref(valueHtml)) return valueHtml.value = val - }, - { - immediate: true } ) @@ -51,6 +48,7 @@ watch( const handleCreated = (editor: IDomEditor) => { editorRef.value = editor + valueHtml.value = props.modelValue } // 编辑器配置