Commit aed958b1be90c32428bf05a0a0afeb51a0578d86

Authored by 若依
Committed by Gitee
2 parents 4f86b6d9 a65c2870

!82 修复Editor组件在传入内容为null时无法响应式更新其内容的bug

Merge pull request !82 from HaoRan/N/A
ruoyi-ui/src/components/Editor/index.vue
... ... @@ -71,9 +71,9 @@ export default {
71 71 value: {
72 72 handler(val) {
73 73 if (val !== this.currentValue) {
74   - this.currentValue = val;
  74 + this.currentValue = val === null ? "" : val;
75 75 if (this.Quill) {
76   - this.Quill.pasteHTML(this.value);
  76 + this.Quill.pasteHTML(this.currentValue);
77 77 }
78 78 }
79 79 },
... ...