MyAside.vue 2.8 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
				<template slot="title">常用功能</template>
10
				<router-link :to="{ path: '/home/tripletDayInfo' }">
11
					<el-menu-item index="/home/tripletDayInfo">阈值管理</el-menu-item>
12
				</router-link>
13 14 15 16 17 18
				<router-link :to="{ path: '/home/accountManagement' }">
					<el-menu-item index="/home/accountManagement">余额管理</el-menu-item>
				</router-link>
			</el-menu-item-group>
			<el-menu-item-group>
				<template slot="title">用户相关</template>
19 20 21
				<router-link :to="{ path: '/home/csdnUser' }">
					<el-menu-item index="/home/csdnUser">用户管理</el-menu-item>
				</router-link>
22 23 24 25 26 27
				<router-link :to="{ path: '/home/fansInfo' }">
					<el-menu-item index="/home/fansInfo">粉丝管理</el-menu-item>
				</router-link>
			</el-menu-item-group>
			<el-menu-item-group>
				<template slot="title">三连相关</template>
28 29 30
				<router-link :to="{ path: '/home/articleInfo' }">
					<el-menu-item index="/home/articleInfo">文章管理</el-menu-item>
				</router-link>
31 32 33
				<router-link :to="{ path: '/home/message' }">
					<el-menu-item index="/home/message">私信管理</el-menu-item>
				</router-link>
34 35 36 37
			</el-menu-item-group>
		</el-submenu>
		<el-submenu index="2">
			<template slot="title">
38
				<i class="el-icon-question"></i>
39 40 41 42 43 44 45 46 47 48 49 50 51
				面试题
			</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">
52
				<i class="el-icon-document"></i>
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
				文档管理
			</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 -->
68
	</el-menu>
69 70
</template>
<script>
71
export default { name: 'MyAside' }
72
</script>
73

74 75
<style lang="less" scoped>
.layout-aside-container {
76
	width: 200px;
77 78
	height: 100%;
	border-right: 1px solid #eaeaea;
79
}
80

81
.left-aside-item {
82
	font-size: 20px;
83
}
84
</style>