集成后台重构版本
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.

43 lines
726 B

  1. <!--
  2. * @Author: Liu_li
  3. * @Descripttion:
  4. * @Date: 2021-09-26 11:03:50
  5. -->
  6. <template>
  7. <div>
  8. <template>
  9. <app-link>
  10. <el-menu-item>
  11. <item :icon="onlyOneChild.meta.icon || (item.meta && item.meta.icon)" :title="onlyOneChild.meta.title" />
  12. </el-menu-item>
  13. </app-link>
  14. </template>
  15. </div>
  16. </template>
  17. <script>
  18. import path from 'path'
  19. import {isExternal} from '@/utils/validate'
  20. export default {
  21. name:'SidebarItem',
  22. props:{
  23. item:{
  24. type:Object,
  25. required:true
  26. },
  27. isNest:{
  28. type:Boolean,
  29. default:false
  30. },
  31. basePath:{
  32. type:String,
  33. default:''
  34. }
  35. },
  36. data() {
  37. this.onlyOneChild=null
  38. return {
  39. }
  40. },
  41. }
  42. </script>