<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>
import { mapState } from "vuex";
// import Cookies from "js-cookie";

export default {
  computed: {
    ...mapState({
      selectNamespace: state => state.commonStore.selectNamespace,
      userInfo: state => state.commonStore.userInfo
    })
  },
  created() {
    this.$router.push({ path: "/task-monitor" });
    // let token = Cookies.get("OO-access_token");
    // let hash = location.hash.split("#/")[1];
    // if (token) {
    //   if (!hash) {
    //     this.$router.push({ path: "/task-monitor" });
    //   }
    // } else {
    //   this.$router.push({ path: "/login" });
    // }
  }
};
</script>
<style lang="scss">
html,
body,
#app {
  height: 100%;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #c7d0d9;
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}
</style>
