From ef91f113ee32d5c4cf3d980731e0e4033254fee1 Mon Sep 17 00:00:00 2001 From: lrl <742798240@qq.com> Date: Wed, 22 Dec 2021 22:49:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A8=E6=80=81=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5=E6=A0=87=E8=AE=B0=E6=94=B9=E4=B8=BArefreshRedirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 74b04bf16..bf6d2339c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -89,7 +89,7 @@ router.beforeEach((to: toRouteType, _from, next) => { }); }; // 未开启标签页缓存,刷新页面重定向到顶级路由(参考标签页操作例子,只针对静态路由) - if (to.meta?.dynamicLevel) { + if (to.meta?.refreshRedirect) { const routes = router.options.routes; const { refreshRedirect } = to.meta; const { name, meta } = findRouteByPath(refreshRedirect, routes);