From 0851efc99cb5607ba24da8ee389a9ca5ee42bd12 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Fri, 5 Dec 2025 16:20:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=81=AB=E7=8B=90=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E4=B8=8B=E8=A1=A8=E6=83=85=E4=BD=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-web/src/components/chat/ChatInput.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/im-web/src/components/chat/ChatInput.vue b/im-web/src/components/chat/ChatInput.vue index a597661..c68cb1f 100644 --- a/im-web/src/components/chat/ChatInput.vue +++ b/im-web/src/components/chat/ChatInput.vue @@ -46,7 +46,7 @@ export default { range.deleteContents(); } // 粘贴图片和文件时,这里没有数据 - if (txt && typeof(txt) == 'string') { + if (txt && typeof (txt) == 'string') { let textNode = document.createTextNode(txt); range.insertNode(textNode) range.collapse(); @@ -236,7 +236,7 @@ export default { }, onBlur(e) { if (!this.atIng) { - this.updateRange(); + //this.updateRange(); } }, onMousedown() { @@ -268,7 +268,6 @@ export default { blurRange.collapse() this.selectElement(textNode); - this.updateRange(); this.isEmpty = false; }, generateId() { @@ -475,6 +474,7 @@ export default { font-size: var(--im-font-size); text-align: left; overflow-y: auto; + white-space: pre-wrap; // 单独一行时,无法在前面输入的bug >div:before {