diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 1e9d1f65f..d628e25a7 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -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;