<template>
  <div id="app">
    <a href="#" class="back-to-top">
      <i class="fa fa-chevron-up"></i>
    </a>
    <div class="click-closed"></div>
    <SearchTab />
    <NavBar @routerGoTo="routerGoTo" />
    <div class="pushDown"></div>
    <router-view />
    <FooterSection />
  </div>
</template>

<script>
// import HomePage from './components/home/homePage.vue';
import SearchTab from "./components/shared/searchTab.vue";
import NavBar from "./components/shared/navBar.vue";
import FooterSection from "./components/shared/footerSection.vue";

export default {
  name: "app",
  components: {
    SearchTab,
    NavBar,
    FooterSection
  },
  // created() {
  //   this.$http.interceptors.response.use(undefined, (err) => {
  //     return new Promise(function(resolve, reject) {
  //       if (err.status === 401 && err.config && !err.config.__isRetryRequest) {
  //         this.$store.dispatch(logout);
  //       }
  //       throw err;
  //     });
  //   });
  // },
  methods: {
    routerGoTo(goTo) {
      this.$router.push(goTo);
    }
  }
};
</script>

<style>
a {
  cursor: pointer;
}
a:hover {
  color: #60cbeb;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.pushDown {
  height: 70px;
}
.cursor-pointer {
  cursor: pointer;
}
</style>
