From 6aa0a060fbb270297b9674c64578f829d80c69bf Mon Sep 17 00:00:00 2001 From: "3075067877@qq.com" <3075067877@qq.com> Date: Tue, 20 Feb 2024 15:18:25 +0800 Subject: [PATCH] vue3 add mitt to fix keyboard listener --- uniapp_project_code/package.json | 1 + .../components/index/keyboard/keyboard_listener.vue | 8 ++++---- uniapp_project_code/src/components/pay/success.vue | 19 +++++++++++++++---- uniapp_project_code/yarn.lock | 5 +++++ 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/uniapp_project_code/package.json b/uniapp_project_code/package.json index 03b993b..15d52e7 100644 --- a/uniapp_project_code/package.json +++ b/uniapp_project_code/package.json @@ -54,6 +54,7 @@ "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3090920231215001", "@dcloudio/uni-mp-xhs": "3.0.0-alpha-3090920231215001", "@dcloudio/uni-quickapp-webview": "3.0.0-alpha-3090920231215001", + "mitt": "^3.0.1", "vue": "^3.2.45", "vue-i18n": "^9.1.9" }, diff --git a/uniapp_project_code/src/components/index/keyboard/keyboard_listener.vue b/uniapp_project_code/src/components/index/keyboard/keyboard_listener.vue index 4ceb16f..320c5d8 100644 --- a/uniapp_project_code/src/components/index/keyboard/keyboard_listener.vue +++ b/uniapp_project_code/src/components/index/keyboard/keyboard_listener.vue @@ -14,6 +14,7 @@