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

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

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