MyAside.vue 1.8 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 11
		<router-link to="/home/chat">
			<el-menu-item index="/chat" class="left-aside-item">
				<i class="el-icon-chat-line-square"></i>
12
				<span slot="title">CHAT管理</span>
13 14
			</el-menu-item>
		</router-link>
15 16
		<router-link to="/home/pic">
			<el-menu-item index="/pic" class="left-aside-item">
17
				<i class="el-icon-setting"></i>
18
				<span slot="title">图片管理</span>
19 20
			</el-menu-item>
		</router-link>
21 22 23 24 25 26
		<router-link to="/home/users">
			<el-menu-item index="/users" class="left-aside-item">
				<i class="el-icon-user"></i>
				<span slot="title">用户管理</span>
			</el-menu-item>
		</router-link>
27 28 29 30
		<router-link to="/home/algorithmic">
			<el-menu-item index="/algorithmic" class="left-aside-item">
				<i class="el-icon-question"></i>
				<span slot="title">算法题管理</span>
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
			</el-menu-item>
		</router-link>
		<router-link to="/home/orders">
			<el-menu-item index="/orders" class="left-aside-item">
				<i class="el-icon-s-order"></i>
				<span slot="title">订单管理</span>
			</el-menu-item>
		</router-link>
		<router-link to="/home/settings">
			<el-menu-item index="/settings" class="left-aside-item">
				<i class="el-icon-setting"></i>
				<span slot="title">系统设置</span>
			</el-menu-item>
		</router-link>
	</el-menu>
46 47
</template>
<script>
48
export default { name: 'MyAside' }
49
</script>
50

51 52
<style lang="less" scoped>
.layout-aside-container {
53 54 55
	width: 250px;
	height: 100%;
	border-right: 1px solid #eaeaea;
56
}
57

58
.left-aside-item {
59
	font-size: 20px;
60
}
61
</style>