From 7aa44b862343bb2a80fa22ae16444fbe12e55e08 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 26 Apr 2023 20:58:56 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=85=BC=E5=AE=B9iPad=E9=94=AE?= =?UTF-8?q?=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/App.vue | 7 +++++++ .../pages/manage/components/DialogWrapper.vue | 20 +++++++++++++++++-- resources/assets/js/store/state.js | 5 +++++ resources/mobile | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/App.vue b/resources/assets/js/App.vue index ddba29555..c8b831c94 100755 --- a/resources/assets/js/App.vue +++ b/resources/assets/js/App.vue @@ -297,6 +297,13 @@ export default { this.$store.dispatch("getBasicData", 600) } } + // 键盘状态 + window.__onKeyboardStatus = (data) => { + const message = $A.jsonParse(decodeURIComponent(data)); + this.$store.state.keyboardType = message.keyboardType; + this.$store.state.keyboardHeight = message.keyboardHeight; + this.$store.state.safeAreaBottom = message.safeAreaBottom; + } // 通知权限 window.__onNotificationPermissionStatus = (ret) => { this.$store.state.appNotificationPermission = $A.runNum(ret) == 1; diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index defb24868..8c19aa3c5 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -179,7 +179,7 @@ -