MyAside.vue 2.6 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
				<router-link :to="{ path: '/home/message' }">
					<el-menu-item index="/home/message">私信管理</el-menu-item>
23 24 25
				</router-link>
						<router-link :to="{ path: '/home/fansInfo' }">
					<el-menu-item index="/home/fansInfo">粉丝管理</el-menu-item>
26
				</router-link>
27 28 29 30
			</el-menu-item-group>
		</el-submenu>
		<el-submenu index="2">
			<template slot="title">
31
				<i class="el-icon-question"></i>
32 33 34 35 36 37 38 39 40 41 42 43 44
				面试题
			</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">
45
				<i class="el-icon-document"></i>
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
				文档管理
			</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 -->
61
	</el-menu>
62 63
</template>
<script>
64
export default { name: 'MyAside' }
65
</script>
66

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

74
.left-aside-item {
75
	font-size: 20px;
76
}
77
</style>