|
@@ -2,7 +2,16 @@
|
|
|
<div id="menus">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
- 菜单
|
|
|
+ <el-menu :default-active="$route.path" background-color="#353852" text-color="#ffffff" active-text-color="#409eff" router>
|
|
|
+ <el-menu-item index="/">
|
|
|
+ <i class="el-icon-menu"></i>
|
|
|
+ <span slot="title">首页</span>
|
|
|
+ </el-menu-item>
|
|
|
+ <el-menu-item index="/home/index">
|
|
|
+ <i class="el-icon-setting"></i>
|
|
|
+ <span slot="title">导航四</span>
|
|
|
+ </el-menu-item>
|
|
|
+ </el-menu>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -18,7 +27,14 @@ export default {
|
|
|
return {};
|
|
|
},
|
|
|
created() {},
|
|
|
- methods: {},
|
|
|
+ methods: {
|
|
|
+ handleOpen(key, keyPath) {
|
|
|
+ console.log(key, keyPath);
|
|
|
+ },
|
|
|
+ handleClose(key, keyPath) {
|
|
|
+ console.log(key, keyPath);
|
|
|
+ },
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
pageTitle() {
|
|
@@ -31,4 +47,12 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+// .el-menu-vertical-demo:not(.el-menu--collapse) {
|
|
|
+// width: 200px;
|
|
|
+// min-height: 400px;
|
|
|
+// }
|
|
|
+/deep/.el-menu {
|
|
|
+ border-right: none;
|
|
|
+}
|
|
|
+</style>
|