From d553f775335a90ed2ac256857d896221d1580e33 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 13 Mar 2024 11:34:27 +0900 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96app=E7=AD=89=E6=AF=94?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/App.vue | 17 +++++++++-------- resources/mobile | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/resources/assets/js/App.vue b/resources/assets/js/App.vue index e615dee6f..af9849d8e 100755 --- a/resources/assets/js/App.vue +++ b/resources/assets/js/App.vue @@ -232,6 +232,12 @@ export default { this.$store.state.formLabelPosition = windowWidth > 576 ? 'right' : 'top' this.$store.state.formLabelWidth = windowWidth > 576 ? 'auto' : '' + + $A.eeuiAppSendMessage({ + action: 'windowSize', + width: windowWidth, + height: windowHeight, + }); }, windowScrollListener() { @@ -317,11 +323,6 @@ export default { } else { this.autoTheme() } - $A.eeuiAppSendMessage({ - action: 'outerSize', - outerWidth: window.outerWidth, - outerHeight: window.outerHeight, - }); } // 新窗口打开 window.__onCreateTarget = (url) => { @@ -400,9 +401,9 @@ export default { } // 发送网页尺寸 $A.eeuiAppSendMessage({ - action: 'outerSize', - outerWidth: window.outerWidth, - outerHeight: window.outerHeight, + action: 'windowSize', + width: this.windowWidth, + height: this.windowHeight, }); // 取消长按振动 $A.eeuiAppSetHapticBackEnabled(false) diff --git a/resources/mobile b/resources/mobile index e02b6760c..a4db4bd83 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit e02b6760cf3db26c77fb2b8db16446be5feef638 +Subproject commit a4db4bd839defbcb90aed24346694c1888456188