From e88830fd1e99050d046a8943770ceee0ec544c00 Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Wed, 24 Apr 2024 16:37:07 +0800 Subject: [PATCH] Update chat.nvue --- pages/chat/chat.nvue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/chat/chat.nvue b/pages/chat/chat.nvue index f9f006c..33cebf9 100644 --- a/pages/chat/chat.nvue +++ b/pages/chat/chat.nvue @@ -606,13 +606,13 @@ if(this.isWidescreen || this.watchChatInputContentDisabled === true){ return } - console.log('chatInputContent',newValue,oldValue); + // console.log('chatInputContent',newValue,oldValue); // 截流调用 chatInputContentAfter 方法 if(this.doChatInputContentAfter){ clearTimeout(this.doChatInputContentAfter) } this.doChatInputContentAfter = setTimeout(() => { - console.error('chatInputContent#6'); + // console.error('chatInputContent#6'); this.lockDoChatInputContentAfter = false this.chatInputContentAfter(newValue, oldValue) }, 300); @@ -692,7 +692,7 @@ // #endif }, chatInputContentAfter(newValue, oldValue){ - console.log('chatInputContentAfter',newValue,oldValue); + // console.log('chatInputContentAfter',newValue,oldValue); currentCursor = -1 // 先找到字符不同的位置,即为光标操作时的位置 for (let i = 0; i < newValue.length; i++) { @@ -707,7 +707,7 @@ // console.log('cursor光标的位置',currentCursor,newValue,'newValue'); let isAdd = newValue.length > oldValue.length let changeValue = isAdd ? newValue[currentCursor] : oldValue[currentCursor] - console.log('changeValue变化的内容',changeValue); + // console.log('changeValue变化的内容',changeValue); if(changeValue == '@'){ this.showAboutUidBox = isAdd if(isAdd){ -- GitLab