// 动态菜单
<el-menu
active-text-color="#ffd04b"
background-color="#545c64"
class="el-menu-vertical-demo"
:default-active="activeIndex"
text-color="#fff"
@select="handleSelect"
>
<template v-for="item of showRoutes" :key="item.path">
<template v-if="item.children">
<el-sub-menu :index="item.path">
<template #title>
<span>{
{
item.meta.title}}</span>
</template>
<el-menu-item-group v-for="itemChild of item.children" :key="itemChild .path">
<el-menu-item
vue3 element-plus动态菜单
于 2022-11-29 00:57:25 首次发布