diff --git a/src/layout/index.vue b/src/layout/index.vue index ebb955ee..200a1b34 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -19,7 +19,7 @@
-
+

{{ pmenu.meta.title }}

@@ -135,7 +135,7 @@
-
+

{{ pmenu.meta.title }}

@@ -257,6 +257,9 @@ showMenu(route) { this.pmenu = route; this.nextMenu = this.filterUrl(route.children); + if(!route.children && route.component){ + this.$router.push({path: route.path}) + } }, //转换外部链接的路由 filterUrl(map){ diff --git a/src/style/app.scss b/src/style/app.scss index 6b9d80e5..e78dbb89 100644 --- a/src/style/app.scss +++ b/src/style/app.scss @@ -42,6 +42,9 @@ a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: bo .adminui-header-menu .el-menu .el-sub-menu__title {color: #fff;} .adminui-header-menu .el-menu .el-sub-menu__title:hover {color: #fff;background: var(--el-color-primary-light-2);} .adminui-header-menu .el-menu .el-sub-menu.is-active .el-sub-menu__title {color: #fff;background: var(--el-color-primary-light-2);border-bottom-color:transparent;} +.adminui-header-menu .el-menu .el-menu-item {color: #fff;} +.adminui-header-menu .el-menu .el-menu-item:hover {color: #fff;background: var(--el-color-primary-light-2);} +.adminui-header-menu .el-menu .el-menu-item.is-active {color: #fff!important;background: var(--el-color-primary-light-2);border-bottom-color:transparent;} /* 左侧菜单 */ .aminui-side-split {width:65px;flex-shrink:0;background: #222b45;} diff --git a/src/views/other/about.vue b/src/views/other/about.vue new file mode 100644 index 00000000..fc2722cf --- /dev/null +++ b/src/views/other/about.vue @@ -0,0 +1,52 @@ + + + + +