提交 e9a3936a 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(onLastPageBackPress): 条件编译指定平台

上级 78eb86a2
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
arr: [] as number[], arr: [] as number[],
mySet: new Set<string>(), mySet: new Set<string>(),
myMap: new Map<string, any>(), myMap: new Map<string, any>(),
func: (): string => { func: () : string => {
return 'globalData func' return 'globalData func'
} }
}, },
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
console.log('App Hide') console.log('App Hide')
}, },
onLastPageBackPress: function () { onLastPageBackPress: function () {
// #ifdef APP-ANDROID
// 自动化测试 // 自动化测试
setLifeCycleNum(state.lifeCycleNum - 1000) setLifeCycleNum(state.lifeCycleNum - 1000)
console.log('App LastPageBackPress') console.log('App LastPageBackPress')
...@@ -63,6 +64,7 @@ ...@@ -63,6 +64,7 @@
firstBackTime = Date.now() firstBackTime = Date.now()
uni.exit() uni.exit()
} }
// #endif
}, },
onExit() { onExit() {
console.log('App Exit') console.log('App Exit')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册