<template>
  <aside class="sidebar">
    <img class="logo" src="../../../static/images/logo.png"/>
    <el-menu
      :default-active="activeMenu"
      class="el-menu-vertical-demo"
    >
      <menu-item :routes-data="routesData"></menu-item>
    </el-menu>
  </aside>
</template>

<script>
  import {menuRouter} from '@/router/routes.js'
  import menuItem from '@/components/sidebar/menuList';
  export default {
    name: 'index',
    components: {
      menuItem
    },
    props: {
    },
    computed: {
    },
    data() {
      return {
        routesData: [],
        activeMenu: ''
      }
    },
    watch:{
    },
    created() {
      this.routesData = menuRouter;
    },
    methods: {
    }
  }
</script>

<style lang="less">
@import "index.less";
</style>
