MyAside.vue 2.1 KB
Newer Older
1
<template>
2
	<el-menu default-active="$route.path" class="layout-aside-container" background-color="#fff" text-color="#000" active-text-color="#42b983">
3 4
		<router-link to="/home/interview">
			<el-menu-item index="/interview" class="left-aside-item">
5
				<i class="el-icon-question"></i>
6 7 8
				<span slot="title">面试题管理</span>
			</el-menu-item>
		</router-link>
9 10
		<router-link to="/home/algorithmic">
			<el-menu-item index="/algorithmic" class="left-aside-item">
11
				<i class="el-icon-info"></i>
12 13 14
				<span slot="title">算法题管理</span>
			</el-menu-item>
		</router-link>
15 16 17 18 19 20
		<router-link to="/home/aphorismPoetry">
			<el-menu-item index="/aphorismPoetry" class="left-aside-item">
				<i class="el-icon-document"></i>
				<span slot="title">诗词管理</span>
			</el-menu-item>
		</router-link>
21 22 23
		<router-link to="/home/chat">
			<el-menu-item index="/chat" class="left-aside-item">
				<i class="el-icon-chat-line-square"></i>
24
				<span slot="title">CHAT管理</span>
25 26
			</el-menu-item>
		</router-link>
27 28
		<router-link to="/home/pic">
			<el-menu-item index="/pic" class="left-aside-item">
29
				<i class="el-icon-setting"></i>
30
				<span slot="title">图片管理</span>
31 32
			</el-menu-item>
		</router-link>
33 34
		<router-link to="/home/csdnUser">
			<el-menu-item index="/csdnUser" class="left-aside-item">
35
				<i class="el-icon-s-custom"></i>
36 37 38
				<span slot="title">用户管理</span>
			</el-menu-item>
		</router-link>
39 40 41 42 43 44
		<router-link to="/home/articleInfo">
			<el-menu-item index="/articleInfo" class="left-aside-item">
				<i class="el-icon-document"></i>
				<span slot="title">文章管理</span>
			</el-menu-item>
		</router-link>
45 46
		<router-link to="/home/tripletDayInfo">
			<el-menu-item index="/tripletDayInfo" class="left-aside-item">
47
				<i class="el-icon-thumb"></i>
48 49 50
				<span slot="title">三连管理</span>
			</el-menu-item>
		</router-link>
51
	</el-menu>
52 53
</template>
<script>
54
export default { name: 'MyAside' }
55
</script>
56

57 58
<style lang="less" scoped>
.layout-aside-container {
59
	width: 200px;
60 61
	height: 100%;
	border-right: 1px solid #eaeaea;
62
}
63

64
.left-aside-item {
65
	font-size: 20px;
66
}
67
</style>