You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
726 B
44 lines
726 B
<!--
|
|
* @Author: Liu_li
|
|
* @Descripttion:
|
|
* @Date: 2021-09-26 11:03:50
|
|
-->
|
|
<template>
|
|
<div>
|
|
<template>
|
|
<app-link>
|
|
<el-menu-item>
|
|
<item :icon="onlyOneChild.meta.icon || (item.meta && item.meta.icon)" :title="onlyOneChild.meta.title" />
|
|
</el-menu-item>
|
|
</app-link>
|
|
</template>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import path from 'path'
|
|
import {isExternal} from '@/utils/validate'
|
|
|
|
export default {
|
|
name:'SidebarItem',
|
|
props:{
|
|
item:{
|
|
type:Object,
|
|
required:true
|
|
},
|
|
isNest:{
|
|
type:Boolean,
|
|
default:false
|
|
},
|
|
basePath:{
|
|
type:String,
|
|
default:''
|
|
}
|
|
},
|
|
data() {
|
|
this.onlyOneChild=null
|
|
return {
|
|
}
|
|
},
|
|
}
|
|
</script>
|