diff --git a/src/layout/index.vue b/src/layout/index.vue index f98e8c7ac75098e6217b1bf614f853f6f8d97f4a..7754a719b9967ce6295efdeb33b53a828ce3c413 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -271,6 +271,8 @@ this.nextMenu = this.filterUrl(route.children); if((!route.children || route.children.length == 0) && route.component){ this.$router.push({path: route.path}) + } else if (route.redirect) { + this.$router.push({path: route.redirect}) } }, //转换外部链接的路由