优化开启TopNav后,菜单数量少时,显示。。。而不是更多菜单(I60WJG)
This commit is contained in:
parent
51b5d9537c
commit
baa3cdffb5
|
@ -3,6 +3,7 @@
|
|||
:default-active="activeMenu"
|
||||
mode="horizontal"
|
||||
@select="handleSelect"
|
||||
:ellipsis="false"
|
||||
>
|
||||
<template v-for="(item, index) in topMenus">
|
||||
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"
|
||||
|
|
Loading…
Reference in New Issue