From a2f13185e18c274d80cadade406e2b47253b038a Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 09 十月 2023 11:57:22 +0800 Subject: [PATCH] fix 修复 HeaderSearch组件跳转query参数丢失问题 --- src/components/TopNav/index.vue | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index 2092415..227fccc 100644 --- a/src/components/TopNav/index.vue +++ b/src/components/TopNav/index.vue @@ -2,7 +2,9 @@ <el-menu :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" - ><svg-icon :icon-class="item.meta ? item.meta.icon : '' " /> {{ item.meta?.title }}</el-menu-item + ><svg-icon + v-if="item.meta && item.meta.icon && item.meta.icon !== '#'" + :icon-class="item.meta ? item.meta.icon : '' " /> {{ item.meta?.title }}</el-menu-item > </template> @@ -180,4 +182,14 @@ padding: 0 5px !important; margin: 0 10px !important; } + +/* 鑳屾櫙鑹查殣钘� */ +.topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, .topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover, .topmenu-container.el-menu--horizontal>.el-submenu .el-submenu__title:hover { + background-color: #ffffff !important; +} + +/* 鍥炬爣鍙抽棿璺� */ +.topmenu-container .svg-icon { + margin-right: 4px; +} </style> -- Gitblit v1.9.3