From cc4a8655f801c78a7ded32f4e97f37fe50e077f2 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 5 Jul 2023 16:13:12 +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 7fcb1d9..0c4124d 100644 --- a/App.vue +++ b/App.vue @@ -22,7 +22,10 @@ }, onLastPageBackPress: function (): boolean | null { setLifeCycleNum(state.lifeCycleNum - 1000) - console.log('App LastPageBackPress') + uni.showToast({ + title: '再按一次退出应用', + position: 'bottom' + }) return null }, } -- GitLab