<script>
  import { updateVersion } from './utils/system';
  import { setCache, getCache } from '@/utils/cache';
  export default {
    async onLaunch() {
      //#ifdef MP-WEIXIN
      // updateVersion();
      //#endif
      console.log('@@@@getCache',getCache('SET_ACCESS_TOKEN'));
      return 
      uni.hideTabBar()
      let tabbar_type = uni.getStorageSync('tabbar_type')
      console.log('@@@tabbar_type',tabbar_type);
      // if(tabbar_type == false)
      // let token = getCache('access_token')
      // console.log('@@@token',token);
      // if(!token){
      //   uni.navigateTo({
      //     url:'/pages/login/index'
      //   })
      //   return
      // }
    },
    onShow() {
      uni.hideTabBar()
    }
  };
</script>

<style lang="scss">
  @import 'uview-ui/index.scss';
  @import url('design/background.css');
  @import url('design/flex.css');
  @import url('design/margin.css');
  @import url('design/padding.css');
  @import url('design/shadow.css');
  @import url('design/text.css');
  @import url('design/common.css');

  page {
    background-color: #f5f5f5;
    color: $uni-text-color;
    font-size: $uni-font-size-base;
  }
</style>
