优化代码

This commit is contained in:
RuoYi 2025-04-22 12:07:27 +08:00
parent c359924d4e
commit 9026c8e49e
4 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@
z-index: 1001;
overflow: hidden;
-webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
box-shadow: 2px 0 6px rgba(0,21,41,.35);
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
// reset element-ui css
.horizontal-collapse-transition {

View File

@ -15,6 +15,7 @@
@input="querySearch"
prefix-icon="Search"
placeholder="菜单搜索支持标题、URL模糊查询"
clearable
>
</el-input>
<el-scrollbar wrap-class="right-scrollbar-wrapper">

View File

@ -57,7 +57,7 @@ export default {
this.routers.map((menu) => {
if (menu.hidden !== true) {
//
if (menu.path === "/") {
if (menu.path === '/' && menu.children) {
topMenus.push(menu.children[0]);
} else {
topMenus.push(menu);

View File

@ -176,6 +176,7 @@ export default {
background: #ffffff;
width: 400px;
padding: 25px 25px 5px 25px;
z-index: 1;
.el-input {
height: 38px;
input {