|
|
|
@ -13,7 +13,7 @@ |
|
|
|
<span>{{ route.meta.title }}</span> |
|
|
|
<span>{{ route.meta.title }}</span> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
<el-button link size="small" v-if="route.children?.length"> |
|
|
|
<el-button link size="small" v-if="route.children?.length"> |
|
|
|
<template #icon> |
|
|
|
<template #icon > |
|
|
|
<icon name="el-icon-ArrowDownBold" /> |
|
|
|
<icon name="el-icon-ArrowDownBold" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
@ -27,18 +27,22 @@ |
|
|
|
" |
|
|
|
" |
|
|
|
:expand="route.meta.isExpand" |
|
|
|
:expand="route.meta.isExpand" |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<div v-for="item in route.children" > |
|
|
|
<a |
|
|
|
<a |
|
|
|
v-for="item in route.children" |
|
|
|
|
|
|
|
:key="item.name" |
|
|
|
:key="item.name" |
|
|
|
|
|
|
|
v-if="!item.meta.hidden" |
|
|
|
@click.stop=" |
|
|
|
@click.stop=" |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
name: item.name, |
|
|
|
name: item.name, |
|
|
|
}) |
|
|
|
}) |
|
|
|
" |
|
|
|
" |
|
|
|
class="flex center v-center" |
|
|
|
class="flex center v-center" |
|
|
|
|
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<span>{{ item.meta.title }}</span> |
|
|
|
|
|
|
|
|
|
|
|
<span v-if="!item.meta.hidden">{{ item.meta.title }} </span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</nav> |
|
|
|
</nav> |
|
|
|
@ -74,6 +78,7 @@ function handleAsideCollapse() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function handleMenuClick(route) { |
|
|
|
function handleMenuClick(route) { |
|
|
|
|
|
|
|
console.log(route) |
|
|
|
if (route.meta.type === "C") { |
|
|
|
if (route.meta.type === "C") { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|