refactor:change layout

This commit is contained in:
Pan
2017-11-24 14:01:54 +08:00
committed by 花裤衩
parent cd047c5ac4
commit 4332f02642
7 changed files with 11 additions and 11 deletions

View File

@@ -0,0 +1,23 @@
<template>
<el-menu mode="vertical" theme="dark" :default-active="$route.path">
<sidebar-item :routes="routes"></sidebar-item>
</el-menu>
</template>
<script>
import SidebarItem from './SidebarItem'
export default {
components: { SidebarItem },
computed: {
routes() {
return this.$router.options.routes
}
}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.el-menu {
min-height: 100%;
}
</style>