@@ -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 {
@@ -15,6 +15,7 @@
@input="querySearch"
prefix-icon="Search"
placeholder="菜单搜索,支持标题、URL模糊查询"
+ clearable
>
</el-input>
<el-scrollbar wrap-class="right-scrollbar-wrapper">
@@ -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);
@@ -176,6 +176,7 @@ export default {
background: #ffffff;
width: 400px;
padding: 25px 25px 5px 25px;
+ z-index: 1;
.el-input {
height: 38px;
input {