MyAside.vue 1.6 KB
Newer Older
1
<template>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
	<el-menu default-active="$route.path" class="layout-aside-container" background-color="#fff" text-color="#000" active-text-color="#42b983">
		<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>
		<router-link to="/home/chat">
			<el-menu-item index="/chat" class="left-aside-item">
				<i class="el-icon-chat-line-square"></i>
				<span slot="title">对话管理</span>
			</el-menu-item>
		</router-link>
		<router-link to="/home/rights">
			<el-menu-item index="/rights" class="left-aside-item">
				<i class="el-icon-setting"></i>
				<span slot="title">权限管理</span>
			</el-menu-item>
		</router-link>
		<router-link to="/home/goods">
			<el-menu-item index="/goods" class="left-aside-item">
				<i class="el-icon-goods"></i>
				<span slot="title">商品管理</span>
			</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>
40 41
</template>
<script>
42
export default { name: 'MyAside' }
43
</script>
44

45 46
<style lang="less" scoped>
.layout-aside-container {
47 48 49
	width: 250px;
	height: 100%;
	border-right: 1px solid #eaeaea;
50
}
51

52
.left-aside-item {
53
	font-size: 20px;
54
}
55
</style>