Browse Source

fix:修改发送后输入框为清空bug;

dxj
李朋徽 1 year ago
parent
commit
619497f9e1
  1. 6
      src/components/AppTextarea/index.vue

6
src/components/AppTextarea/index.vue

@ -88,12 +88,12 @@ function pressEnter(event: KeyboardEvent) {
function handeleSend() { function handeleSend() {
if (isEmpty(trim(value.value))) { if (isEmpty(trim(value.value))) {
message.warning('请输入内容') message.warning('请输入内容')
setTimeout(() => {
value.value = ''
}, 0)
return false return false
} }
emit('send', value.value, fileUrl.value) emit('send', value.value, fileUrl.value)
setTimeout(() => {
value.value = ''
}, 0)
} }
function stopMessage() { function stopMessage() {

Loading…
Cancel
Save