From 35f3dbfb2b8a42399749e0189fabb821c7614c79 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 5 Jul 2023 16:13:01 +0800 Subject: [PATCH] feat(lifecycle): onLastPageBackPress --- App.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/App.vue b/App.vue index 92a780ab..0e4dd402 100644 --- a/App.vue +++ b/App.vue @@ -16,7 +16,10 @@ export default { console.log("App Hide"); }, onLastPageBackPress: function (): boolean | null { - console.log("App LastPageBackPress"); + uni.showToast({ + title: "再按一次退出应用", + position: "bottom", + }); return null; }, }; -- GitLab