From d8dc3f34c6f897a0c4a7ed2a84042ce98cb87e34 Mon Sep 17 00:00:00 2001 From: v_xugzhou <941071842@qq.com> Date: Tue, 14 Nov 2023 14:17:49 +0800 Subject: [PATCH] =?UTF-8?q?optimization:=20inputTag=E7=B2=98=E8=B4=B4?= =?UTF-8?q?=E6=97=B6=E6=8D=A2=E8=A1=8C=E7=AC=A6=E6=9B=BF=E6=8D=A2=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/RenderForm/tags/TagInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/desktop/src/components/common/RenderForm/tags/TagInput.vue b/frontend/desktop/src/components/common/RenderForm/tags/TagInput.vue index acd8f81606..99204d62fc 100644 --- a/frontend/desktop/src/components/common/RenderForm/tags/TagInput.vue +++ b/frontend/desktop/src/components/common/RenderForm/tags/TagInput.vue @@ -500,7 +500,7 @@ const clp = (e.originalEvent || e).clipboardData if (clp === undefined || clp === null) { text = window.clipboardData.getData('text') || '' - text = text.replace(/(\n|\r|\r\n)/g, '') + text = text.replace(/(\n|\r|\r\n)/g, ' ') if (text !== '') { if (window.getSelection) { const newNode = document.createElement('span') @@ -512,7 +512,7 @@ } } else { text = clp.getData('text/plain') || '' - text = text.replace(/(\n|\r|\r\n)/g, '') + text = text.replace(/(\n|\r|\r\n)/g, ' ') text && document.execCommand('insertText', false, text) } }