<template>
  <!-- <div id="nav">
    <router-link to="/">Home</router-link> |
    <router-link to="/about">About</router-link>
  </div> --> 
  <router-view/>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import store from './store';
import { getValue } from './utils/common';

export default defineComponent({
  setup(){
    if(getValue('token')){
      store.commit("login")
      store.dispatch("setUserInfo");
    }
  }
})
</script>

<style lang="scss">
.one-line-hide {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

</style>
