diff --git a/src/layout/index.vue b/src/layout/index.vue index 748c1685..7d5fc47d 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -273,7 +273,7 @@ showMenu(route) { this.pmenu = route; this.nextMenu = this.filterUrl(route.children); - if(!route.children && route.component){ + if((!route.children || route.children.length == 0) && route.component){ this.$router.push({path: route.path}) } },