From cf16b7eb98f6106dc691b78b509a87bc7ce38ad2 Mon Sep 17 00:00:00 2001 From: mouyong Date: Thu, 13 Oct 2022 11:22:14 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E7=9A=84=20redirect=20=E8=AE=BE=E7=BD=AE=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mouyong --- src/layout/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layout/index.vue b/src/layout/index.vue index f98e8c7..7754a71 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}) } }, //转换外部链接的路由 -- Gitee