<style lang="scss"> @import url('uni.scss'); /*每个页面公共css */ .fixed{ position:absolute; top:0; left:0; width:100%; height:100%; overflow: auto; } page{ min-height:100%; height:100%; } </style> <script> export default { onLaunch: function() { if(this.$store.getters.token){ }else{ this.$store.commit('outLogin') } }, onShow: function() { console.log('App Show') }, onHide: function() { console.log('App Hide') } } </script>