perf: 触屏设备实体键盘回车发送

This commit is contained in:
kuaifan 2023-06-09 16:52:12 +08:00
parent 4957f32d06
commit e75fbadd53

View File

@ -357,13 +357,27 @@ export default {
} }
}, },
computed: { computed: {
...mapState(['cacheProjects', 'cacheTasks', 'cacheUserBasic', 'dialogMsgs', 'cacheDialogs']), ...mapState([
'cacheProjects',
'cacheTasks',
'cacheUserBasic',
isEnterSend() { 'cacheDialogs',
if (typeof this.enterSend === "boolean") { 'dialogMsgs',
return this.enterSend;
'keyboardType',
'keyboardHeight',
]),
isEnterSend({enterSend, keyboardType, keyboardHeight, windowTouch}) {
if (typeof enterSend === "boolean") {
return enterSend;
} else { } else {
return !this.windowTouch // 120
if (windowTouch && keyboardType === "show" && keyboardHeight < 120) {
return true;
}
return !windowTouch
} }
}, },