修复TopNav无法正确获取active的问题

This commit is contained in:
RuoYi 2024-11-27 19:58:58 +08:00
parent c5615001c8
commit 8e99b826fa
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
</template>
<!-- 顶部菜单超出数量折叠 -->
<el-submenu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber">
<el-submenu :style="{'--theme': theme}" index="more" :key="visibleNumber" v-if="topMenus.length > visibleNumber">
<template slot="title">更多菜单</template>
<template v-for="(item, index) in topMenus">
<el-menu-item