From 47f3dadfd4cf6293c4ed144fb4a7d9145d560321 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 28 Jun 2022 10:09:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BE=93=E5=85=A5=E6=A1=86=E7=B2=98?= =?UTF-8?q?=E8=B4=B4=E5=90=8E=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/components/ChatInput/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index eadec668f..456ef22a5 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -593,7 +593,7 @@ export default { const range = this.quill.getSelection(); if (range) { const endText = this.quill.getText(range.index); - /\n\n/.test(endText) && this.quill.deleteText(range.index, 1); + /^\n\n$/.test(endText) && this.quill.deleteText(range.index, 1); } }) })