|
@@ -7,7 +7,7 @@
|
|
|
<el-menu :collapse="isCollapse" router @handleOpen="handleOpen" @handleClose="handleClose">
|
|
<el-menu :collapse="isCollapse" router @handleOpen="handleOpen" @handleClose="handleClose">
|
|
|
<el-menu-item v-for="item in menuItems" :key="item.route" :index="item.route" :class="activeRoute == item.route ? 'is-active' : ''" >
|
|
<el-menu-item v-for="item in menuItems" :key="item.route" :index="item.route" :class="activeRoute == item.route ? 'is-active' : ''" >
|
|
|
<template #default>
|
|
<template #default>
|
|
|
- <i class="iconfont" :class="`icon-${item.icon}`"></i>
|
|
|
|
|
|
|
+ <i class="iconfont" :class="item.icon"></i>
|
|
|
<span v-if="!isCollapse">{{ item.label }}</span>
|
|
<span v-if="!isCollapse">{{ item.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #title>
|
|
<template #title>
|
|
@@ -35,17 +35,17 @@ const isCollapse = ref(false)
|
|
|
const menuItems = ref([
|
|
const menuItems = ref([
|
|
|
{
|
|
{
|
|
|
label: '学校管理',
|
|
label: '学校管理',
|
|
|
- icon: 'school_normal',
|
|
|
|
|
|
|
+ icon: 'icon_xuexiaoguanli',
|
|
|
route: '/main/school',
|
|
route: '/main/school',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '运维管理',
|
|
label: '运维管理',
|
|
|
- icon: 'manage_normal',
|
|
|
|
|
|
|
+ icon: 'icon_yunweiyonghu',
|
|
|
route: '/main/manager',
|
|
route: '/main/manager',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '联考管理',
|
|
label: '联考管理',
|
|
|
- icon: 'school_normal',
|
|
|
|
|
|
|
+ icon: 'icon_liankaoguanli',
|
|
|
route: '/main/examination',
|
|
route: '/main/examination',
|
|
|
}
|
|
}
|
|
|
])
|
|
])
|