聊天中,输入内容后,点击上方默认消息,会清空输入框修复

This commit is contained in:
yj 2025-02-18 17:30:50 +08:00
parent 1ec1c1f12f
commit 4776b15026
1 changed files with 4 additions and 2 deletions

View File

@ -2163,7 +2163,6 @@ const Meeting: React.FC = () => {
chatListIten: item, chatListIten: item,
} }
}) })
setTextMsg('');
chatScrollBotton() chatScrollBotton()
} else { } else {
message.error('请输入内容!') message.error('请输入内容!')
@ -3162,7 +3161,10 @@ const Meeting: React.FC = () => {
<Input.TextArea placeholder="请输入消息" value={textMsg} style={{ flexGrow: 1 }} onChange={(e) => { <Input.TextArea placeholder="请输入消息" value={textMsg} style={{ flexGrow: 1 }} onChange={(e) => {
setTextMsg(e.target.value) setTextMsg(e.target.value)
}}></Input.TextArea> }}></Input.TextArea>
<Button type="primary" className='m-ant-btn' style={{ flexShrink: 0, marginTop: '4px' }} onClick={() => sendMsg()}></Button> <Button type="primary" className='m-ant-btn' style={{ flexShrink: 0, marginTop: '4px' }} onClick={() => {
sendMsg()
setTextMsg('');
}}></Button>
</div> </div>
</div> </div>
: :