From 7c710d2afe413cddbfb41513a8fde4dced6bc307 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 31 Aug 2025 09:39:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E5=9C=A8=20val=20=E4=B8=BA=20null=20=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Editor/src/Editor.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Editor/src/Editor.vue b/src/components/Editor/src/Editor.vue index 3b0513b8..7e81c58e 100644 --- a/src/components/Editor/src/Editor.vue +++ b/src/components/Editor/src/Editor.vue @@ -40,6 +40,9 @@ const valueHtml = ref('') watch( () => props.modelValue, (val: string) => { + if (!val) { + val = '' + } if (val === unref(valueHtml)) return valueHtml.value = val },