<template>
  <div id="appC">
    <keep-alive><router-view /></keep-alive>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {};
  },
  mounted() {
    // console.log(this.$router, ' this.$router');
    // this.$router.beforeEach((to, from, next) => {
    //   if (store.state.token) {
    //     console.log(store.state.token, '已经登录成功');
    //     next();
    //   } else {
    //     console.log('已经登录成功11111111111');
    //     var origin1 = location.href.replace('/index', '');
    //     console.log(origin1,  'origin1');
    //     location.href = origin1;
    //     next();
    //   }
    // });
  }
};
</script>

<style>
body {
  margin: 0;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  /* display: none; */
  width: 0 !important;
  height: 0 !important;
}

html {
  font-size: 0.342857rem;
}
#appC {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
  font-size: 0.342857rem;
}
</style>
