From aed958b1be90c32428bf05a0a0afeb51a0578d86 Mon Sep 17 00:00:00 2001
From: 若依 <yzz_ivy@163.com>
Date: 星期五, 04 九月 2020 14:04:08 +0800
Subject: [PATCH] !82 修复Editor组件在传入内容为null时无法响应式更新其内容的bug Merge pull request !82 from HaoRan/N/A

---
 ruoyi-ui/src/components/Editor/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/components/Editor/index.vue b/ruoyi-ui/src/components/Editor/index.vue
index 6eb2687..162d240 100644
--- a/ruoyi-ui/src/components/Editor/index.vue
+++ b/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);
           }
         }
       },

--
Gitblit v1.9.2