!15 update src/layout/index.vue.

Merge pull request !15 from 贾二小/N/A
This commit is contained in:
sakuya 2021-12-07 04:47:40 +00:00 committed by Gitee
commit a680f11166
1 changed files with 1 additions and 1 deletions

View File

@ -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})
}
},