|
@ -8,14 +8,14 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import MenuItem from './menuItem' |
|
|
import MenuItem from './menuItem' |
|
|
import SubMenu from './submenu' |
|
|
|
|
|
|
|
|
import AsyncSubmenu from './asyncSubmenu' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'AsideComponent', |
|
|
name: 'AsideComponent', |
|
|
computed:{ |
|
|
computed:{ |
|
|
menuComponent(){ |
|
|
menuComponent(){ |
|
|
if(this.routerInfo.children.length){ |
|
|
if(this.routerInfo.children.length){ |
|
|
return 'SubMenu' |
|
|
|
|
|
|
|
|
return 'AsyncSubmenu' |
|
|
}else{ |
|
|
}else{ |
|
|
return 'MenuItem' |
|
|
return 'MenuItem' |
|
|
} |
|
|
} |
|
@ -31,7 +31,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
MenuItem, |
|
|
MenuItem, |
|
|
SubMenu |
|
|
|
|
|
|
|
|
AsyncSubmenu |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|