From e83f12a2205fd839e1505553d097791446e8c494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=9C=E6=96=B9?= <89042011@qq.com> Date: Sun, 13 Sep 2020 13:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E7=94=B1=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/routerUtil.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/routerUtil.js b/src/utils/routerUtil.js index ce573c7..cf953b8 100644 --- a/src/utils/routerUtil.js +++ b/src/utils/routerUtil.js @@ -35,6 +35,11 @@ function parseRoutes(routesConfig, routerMap) { page: routeCfg.page || router.page } } + const redirect = routeCfg.redirect || router.redirect + // redirect && route.redirect=redirect + if (redirect){ + route.redirect=redirect + } if (routeCfg.invisible || router.invisible) { route.meta.invisible = true }