优化开启TopNav后,菜单数量少时,显示。。。而不是更多菜单(I60WJG)

This commit is contained in:
RuoYi 2022-11-16 09:37:31 +08:00
parent 51b5d9537c
commit baa3cdffb5
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
:default-active="activeMenu" :default-active="activeMenu"
mode="horizontal" mode="horizontal"
@select="handleSelect" @select="handleSelect"
:ellipsis="false"
> >
<template v-for="(item, index) in topMenus"> <template v-for="(item, index) in topMenus">
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber" <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"