fix:富文本在 val 为 null 会报错的问题
This commit is contained in:
parent
fa3f9eca14
commit
7c710d2afe
@ -40,6 +40,9 @@ const valueHtml = ref('')
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
(val: string) => {
|
||||
if (!val) {
|
||||
val = ''
|
||||
}
|
||||
if (val === unref(valueHtml)) return
|
||||
valueHtml.value = val
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user