From 3f08ae6ac43b24452ace1ec4372f25ad9ef9b5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 2 Jul 2024 16:51:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E8=BE=91=E5=99=A8=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E5=86=85=E5=AE=B9=E6=9C=AA=E6=B8=85=E7=90=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Editor/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index fc30c85..ba70fbb 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -110,7 +110,7 @@ watch( () => props.modelValue, (v: string) => { if (v !== content.value) { - content.value = v === undefined ? '
' : v; + content.value = v || ''; } }, { immediate: true }