diff --git a/src/layout/index.vue b/src/layout/index.vue index 99363a1..e55c9cd 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -275,7 +275,13 @@ this.nextMenu = this.filterUrl(route.children); if((!route.children || route.children.length == 0) && ( route.meta.type=='iframe' || route.component)){ this.$router.push({path: route.path}) + return ; } + + if (route.children.length > 0) { + this.$router.push({path: route.children[0].path}) + } + }, //转换外部链接的路由 filterUrl(map){ diff --git a/src/views/system/log/index.vue b/src/views/system/log/index.vue index b72aa3f..5b2075a 100644 --- a/src/views/system/log/index.vue +++ b/src/views/system/log/index.vue @@ -1,8 +1,7 @@