From a65c28707599e31689cca650dde5bb40546bc2f8 Mon Sep 17 00:00:00 2001 From: HaoRan <418836876@qq.com> Date: 星期一, 31 八月 2020 02:10:01 +0800 Subject: [PATCH] 修复Editor组件无法对响应式更新null值问题 --- 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