<template>
  <app-header/>
  <div id="app-main">
    <router-view />  
  </div>
</template>

<script>
import {getQueryObject} from '@/utils'
import { setToken } from '@/utils/auth'
import appHeader from '@/components/Header.vue'
export default {
  components:{
    appHeader
  },
}
if(getQueryObject().token){
  setToken(getQueryObject().token)
}
</script>
<style lang="scss" scoped>
#app-main{
    height: 91.11vh;
    background-image: url(@/assets/bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}
</style>
