From 3b2b1a49e46e631af467e4c0e2a6dcca3db273a7 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 19 Dec 2023 12:01:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(onLastPageBackPress):=20=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E7=BC=96=E8=AF=91=E6=8C=87=E5=AE=9A=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/App.vue b/App.vue index 50d83e8..0e74e07 100644 --- a/App.vue +++ b/App.vue @@ -12,6 +12,7 @@ export default { console.log('App Hide') }, onLastPageBackPress: function () { + // #ifdef UNI-APP-X && APP-ANDROID console.log('App LastPageBackPress') if (firstBackTime == 0) { uni.showToast({ @@ -26,6 +27,7 @@ export default { firstBackTime = Date.now() uni.exit() } + // #endif }, onExit() { console.log('App Exit') -- GitLab