MyAside.vue 1.7 KB
Newer Older
1
<template>
2 3 4 5 6 7 8 9
  <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">
10
      <el-menu-item index="/users" class="left-aside-item">
11 12 13 14 15
        <i class="el-icon-user"></i>
        <span slot="title">用户管理</span>
      </el-menu-item>
    </router-link>
    <router-link to="/home/chat">
16
      <el-menu-item index="/chat" class="left-aside-item">
17 18 19 20 21
        <i class="el-icon-chat-line-square"></i>
        <span slot="title">对话管理</span>
      </el-menu-item>
    </router-link>
    <router-link to="/home/rights">
22
      <el-menu-item index="/rights" class="left-aside-item">
23 24 25 26 27
        <i class="el-icon-setting"></i>
        <span slot="title">权限管理</span>
      </el-menu-item>
    </router-link>
    <router-link to="/home/goods">
28
      <el-menu-item index="/goods" class="left-aside-item">
29 30 31 32 33
        <i class="el-icon-goods"></i>
        <span slot="title">商品管理</span>
      </el-menu-item>
    </router-link>
    <router-link to="/home/orders">
34
      <el-menu-item index="/orders" class="left-aside-item">
35 36 37 38 39
        <i class="el-icon-s-order"></i>
        <span slot="title">订单管理</span>
      </el-menu-item>
    </router-link>
    <router-link to="/home/settings">
40
      <el-menu-item index="/settings" class="left-aside-item">
41 42 43 44 45
        <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 50 51 52 53 54 55
</script>
<style lang="less" scoped>
.layout-aside-container {
  width: 250px;
  height: 100%;
  border-right: 1px solid #eaeaea;
}
56 57 58
.left-aside-item {
  font-size: 20px;
}
59
</style>