Skip to content

Commit 3f08ae6

Browse files
committed
fix 修复 富文本编辑器 添加之后内容未清理问题
1 parent cc6284d commit 3f08ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Editor/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ watch(
110110
() => props.modelValue,
111111
(v: string) => {
112112
if (v !== content.value) {
113-
content.value = v === undefined ? '<p></p>' : v;
113+
content.value = v || '<p></p>';
114114
}
115115
},
116116
{ immediate: true }

0 commit comments

Comments
 (0)