perf: 客户端窗口激活自动获取聊天焦点
This commit is contained in:
@@ -479,6 +479,7 @@ export default {
|
||||
'cacheDialogs',
|
||||
'wsOpenNum',
|
||||
'touchBackInProgress',
|
||||
'dialogIns'
|
||||
]),
|
||||
|
||||
...mapGetters(['isLoad']),
|
||||
@@ -793,6 +794,15 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
windowActive(active) {
|
||||
if (active && this.autoFocus) {
|
||||
const lastDialog = $A.last(this.dialogIns)
|
||||
if (lastDialog && lastDialog.uid === this._uid) {
|
||||
this.inputFocus()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
dialogDrag(val) {
|
||||
if (val) {
|
||||
this.operateVisible = false;
|
||||
|
||||
Reference in New Issue
Block a user