fix 修复 富文本编辑器 添加之后内容未清理问题

This commit is contained in:
疯狂的狮子Li 2024-07-02 16:51:03 +08:00
parent cc6284d3ac
commit 3f08ae6ac4

View File

@ -110,7 +110,7 @@ watch(
() => props.modelValue, () => props.modelValue,
(v: string) => { (v: string) => {
if (v !== content.value) { if (v !== content.value) {
content.value = v === undefined ? '<p></p>' : v; content.value = v || '<p></p>';
} }
}, },
{ immediate: true } { immediate: true }