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