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

<script>
import { mapActions } from 'vuex'
export default {
   components: {
   },
   created () {
       this.$store.dispatch('initData')
   }
}
</script>

<style lang="stylus" scoped>
#app
  display: flex
  margin: 20px auto
  width: 1260px
  background-color: #fff
  .sidebar
    width: 60px
    height: 800px
    background: #2b2c2f
  .main
    flex: 1
    height: 800px
    background: #f2f2f2
  .tarbar
    flex: 2
    width:800px;
    height: 800px;
</style>
