From 60ab4bc435d353f37118de3b3906fed1f90e5dab Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 19 Feb 2021 14:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=EF=BC=9A=E5=86=99=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E7=95=8C=E9=9D=A2=E7=BC=A9=E7=95=A5=E5=90=8D=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E7=9A=84=E4=BD=BF=E7=94=A8=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/markdown/EditElement.vue | 2 +- src/views/markdown/index.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/markdown/EditElement.vue b/src/views/markdown/EditElement.vue index 6447c97..5d400a8 100644 --- a/src/views/markdown/EditElement.vue +++ b/src/views/markdown/EditElement.vue @@ -28,7 +28,7 @@ export default{ }, watch: { value(value){ - if (!this.isLocked || !this.innerText) { + if (!this.isLocked) { this.innerText = value document.getElementById('edit-div').innerHTML = value } diff --git a/src/views/markdown/index.vue b/src/views/markdown/index.vue index 466a076..fc70bae 100644 --- a/src/views/markdown/index.vue +++ b/src/views/markdown/index.vue @@ -14,6 +14,7 @@