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

feat(App): onExit

上级 186d7b48
...@@ -31,6 +31,9 @@ export default { ...@@ -31,6 +31,9 @@ export default {
setLifeCycleNum(state.lifeCycleNum - 100) setLifeCycleNum(state.lifeCycleNum - 100)
console.log('App Hide') console.log('App Hide')
}, },
onExit(){
console.log('App Exit')
},
onLastPageBackPress: function () { onLastPageBackPress: function () {
// 自动化测试 // 自动化测试
setLifeCycleNum(state.lifeCycleNum - 1000) setLifeCycleNum(state.lifeCycleNum - 1000)
...@@ -60,7 +63,7 @@ export default { ...@@ -60,7 +63,7 @@ export default {
<style> <style>
/*每个页面公共css */ /*每个页面公共css */
@import './common/uni.css'; @import "./common/uni.css";
/* #ifdef H5 */ /* #ifdef H5 */
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册