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 }