Selaa lähdekoodia

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

lrl 3 vuotta sitten
vanhempi
commit
ef91f113ee
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/router/index.ts

+ 1 - 1
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);