修复Editor组件无法对响应式更新null值问题

This commit is contained in:
HaoRan 2020-08-31 02:10:01 +08:00 committed by Gitee
parent 1af0d1665c
commit a65c287075
1 changed files with 2 additions and 2 deletions

View File

@ -71,9 +71,9 @@ export default {
value: {
handler(val) {
if (val !== this.currentValue) {
this.currentValue = val;
this.currentValue = val === null ? "" : val;
if (this.Quill) {
this.Quill.pasteHTML(this.value);
this.Quill.pasteHTML(this.currentValue);
}
}
},