mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
fix: 动态标签页标记改为refreshRedirect
This commit is contained in:
parent
c875d20e83
commit
ef91f113ee
@ -89,7 +89,7 @@ router.beforeEach((to: toRouteType, _from, next) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
// 未开启标签页缓存,刷新页面重定向到顶级路由(参考标签页操作例子,只针对静态路由)
|
// 未开启标签页缓存,刷新页面重定向到顶级路由(参考标签页操作例子,只针对静态路由)
|
||||||
if (to.meta?.dynamicLevel) {
|
if (to.meta?.refreshRedirect) {
|
||||||
const routes = router.options.routes;
|
const routes = router.options.routes;
|
||||||
const { refreshRedirect } = to.meta;
|
const { refreshRedirect } = to.meta;
|
||||||
const { name, meta } = findRouteByPath(refreshRedirect, routes);
|
const { name, meta } = findRouteByPath(refreshRedirect, routes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user