<script>
  export default {
    onLaunch: function() {
      console.log('App Launch')
      try{
        if(!this.$store.state.app.token)uni.redirectTo({
          url: '/pages/oaLogin/oaLogin'
        })
      }catch(e){
        uni.redirectTo({
          url: '/pages/oaLogin/oaLogin'
        })
      }
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    }
  }
</script>

<style>
  /*每个页面公共css */
  @import 'static/css/base.css';
  @import 'static/css/style.scss';
  
  view {
    box-sizing: border-box;
  }
</style>
