Commit a65c28707599e31689cca650dde5bb40546bc2f8
Committed by
Gitee
1 parent
1af0d166
修复Editor组件无法对响应式更新null值问题
Showing
1 changed file
with
2 additions
and
2 deletions
ruoyi-ui/src/components/Editor/index.vue
| @@ -71,9 +71,9 @@ export default { | @@ -71,9 +71,9 @@ export default { | ||
| 71 | value: { | 71 | value: { |
| 72 | handler(val) { | 72 | handler(val) { |
| 73 | if (val !== this.currentValue) { | 73 | if (val !== this.currentValue) { |
| 74 | - this.currentValue = val; | 74 | + this.currentValue = val === null ? "" : val; |
| 75 | if (this.Quill) { | 75 | if (this.Quill) { |
| 76 | - this.Quill.pasteHTML(this.value); | 76 | + this.Quill.pasteHTML(this.currentValue); |
| 77 | } | 77 | } |
| 78 | } | 78 | } |
| 79 | }, | 79 | }, |