MyAside.vue 2.4 KB
Newer Older
1
<template>
2
	<el-menu :default-openeds="['1', '2', '3']" default-active="$route.path" class="layout-aside-container" background-color="#fff" text-color="#000" active-text-color="#42b983">
3 4 5 6 7 8
		<el-submenu index="1">
			<template slot="title">
				<i class="el-icon-thumb"></i>
				CSDN管理
			</template>
			<el-menu-item-group>
9 10 11
				<router-link :to="{ path: '/home/redPackage' }">
					<el-menu-item index="/home/redPackage">红包管理</el-menu-item>
				</router-link>
12 13 14 15 16 17 18 19 20
				<router-link :to="{ path: '/home/tripletDayInfo' }">
					<el-menu-item index="/home/tripletDayInfo">三连管理</el-menu-item>
				</router-link>
				<router-link :to="{ path: '/home/csdnUser' }">
					<el-menu-item index="/home/csdnUser">用户管理</el-menu-item>
				</router-link>
				<router-link :to="{ path: '/home/articleInfo' }">
					<el-menu-item index="/home/articleInfo">文章管理</el-menu-item>
				</router-link>
21 22 23
				<router-link :to="{ path: '/home/message' }">
					<el-menu-item index="/home/message">私信管理</el-menu-item>
				</router-link>
24 25 26 27
			</el-menu-item-group>
		</el-submenu>
		<el-submenu index="2">
			<template slot="title">
28
				<i class="el-icon-question"></i>
29 30 31 32 33 34 35 36 37 38 39 40 41
				面试题
			</template>
			<el-menu-item-group>
				<router-link :to="{ path: '/home/interview' }">
					<el-menu-item index="/home/interview">面试题管理</el-menu-item>
				</router-link>
				<router-link :to="{ path: '/home/algorithmic' }">
					<el-menu-item index="/home/algorithmic">算法题管理</el-menu-item>
				</router-link>
			</el-menu-item-group>
		</el-submenu>
		<el-submenu index="3">
			<template slot="title">
42
				<i class="el-icon-document"></i>
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
				文档管理
			</template>
			<el-menu-item-group>
				<router-link :to="{ path: '/home/aphorismPoetry' }">
					<el-menu-item index="/home/aphorismPoetry">诗词管理</el-menu-item>
				</router-link>
				<router-link :to="{ path: '/home/chat' }">
					<el-menu-item index="/home/chat">CHAT管理</el-menu-item>
				</router-link>
				<router-link :to="{ path: '/home/pic' }">
					<el-menu-item index="/home/pic">图片管理</el-menu-item>
				</router-link>
			</el-menu-item-group>
		</el-submenu>
		<!-- The rest of your code for other menu items and submenus -->
58
	</el-menu>
59 60
</template>
<script>
61
export default { name: 'MyAside' }
62
</script>
63

64 65
<style lang="less" scoped>
.layout-aside-container {
66
	width: 200px;
67 68
	height: 100%;
	border-right: 1px solid #eaeaea;
69
}
70

71
.left-aside-item {
72
	font-size: 20px;
73
}
74
</style>