修复文件管理导航栏没有icon显示的bug

This commit is contained in:
p71924506 2023-01-28 15:50:50 +08:00
parent 8c26881885
commit cf60266832
1 changed files with 14 additions and 3 deletions

View File

@ -16,9 +16,13 @@
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
<el-submenu index="4">
<item title="文件管理2.0" />
<!-- <i class="el-icon-document"/>-->
<el-submenu index="4" >
<template slot="title">
<i class="el-icon-document sub-el-icon"></i>
<span>文件管理2.0</span>
</template>
<!-- <item title="文件管理2.0"/>-->
<el-menu-item-group>
<el-menu-item v-for="item in filesTypeList" :index="item.filesTypeId">
@ -118,3 +122,10 @@ export default {
}
}
</script>
<style scoped>
.sub-el-icon {
color: currentColor;
width: 1em;
height: 1em;
}
</style>