|
|
|
|
|
|
|
|
<template v-if="!item.children"> |
|
|
<template v-if="!item.children"> |
|
|
<a-menu-item :key="item.path" @click="onMenu(item.path)"> |
|
|
<a-menu-item :key="item.path" @click="onMenu(item.path)"> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<!-- <component :is="item"></component> --> |
|
|
|
|
|
|
|
|
<component :is="item.meta.icon"></component> |
|
|
</template> |
|
|
</template> |
|
|
<span>{{item.meta.title}}</span> |
|
|
<span>{{item.meta.title}}</span> |
|
|
</a-menu-item> |
|
|
</a-menu-item> |
|
|
|
|
|
|
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<a-sub-menu :key="item.path"> |
|
|
<a-sub-menu :key="item.path"> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<!-- <component :is="item"></component> --> |
|
|
|
|
|
|
|
|
<component :is="item.meta.icon"></component> |
|
|
</template> |
|
|
</template> |
|
|
<template #title>{{item.meta.title}}</template> |
|
|
<template #title>{{item.meta.title}}</template> |
|
|
<template v-for="(twoItem, twoIndex) in item.children"> |
|
|
<template v-for="(twoItem, twoIndex) in item.children"> |