From f6b7eca0f5e4fa6137b23e71eb4d990051cc0c9e Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 8 Jul 2022 16:23:14 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E6=BF=80=E6=B4=BB=E8=87=AA=E5=8A=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/components/DialogWrapper.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;