!82 修复Editor组件在传入内容为null时无法响应式更新其内容的bug
Merge pull request !82 from HaoRan/N/A
已修改1个文件
4 ■■■■ 文件已修改
ruoyi-ui/src/components/Editor/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/components/Editor/index.vue
@@ -71,9 +71,9 @@
    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);
          }
        }
      },