fix: 动态标签页标记改为refreshRedirect

This commit is contained in:
lrl 2021-12-22 22:49:34 +08:00
parent c875d20e83
commit ef91f113ee

View File

@ -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);