perf: 任务聊天中发送图片时,回车可确定发送
This commit is contained in:
parent
da20fafa39
commit
695fb60aa4
@ -248,6 +248,9 @@ export default {
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.pasteEnter()
|
||||
},
|
||||
|
||||
methods: {
|
||||
sendMsg(text) {
|
||||
@ -352,7 +355,15 @@ export default {
|
||||
this.dialogDrag = true;
|
||||
}
|
||||
},
|
||||
|
||||
pasteEnter() {
|
||||
var that = this;
|
||||
document.onkeydown = function (e) {
|
||||
if (e.keyCode === 13 && that.pasteShow) {
|
||||
that.pasteSend();
|
||||
that.pasteShow = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
pasteSend() {
|
||||
this.pasteFile.some(file => {
|
||||
this.$refs.chatUpload.upload(file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user