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

<script>
import {mapGetters, mapActions} from 'vuex'
export default {
  name: 'App',
  created () {
    this.getProjectInfo()
  },

  computed: {
    ...mapGetters({
      menus: 'getMenus',
      project: 'getProjectInfo'
    })
  },
  methods:{
    ...mapActions([
      'getProjectInfo'
    ])
  }
}
</script>

<style lang="scss">
@import "~@/assets/font-awesome/scss/font-awesome.scss";

/** 重置element-ui theme **/
$--color-primary: #337ab7 !default;
$--font-path: "~element-ui/lib/theme-chalk/fonts";
@import "~element-ui/packages/theme-chalk/src/index";
</style>
