perf: router

This commit is contained in:
xiaoxian521
2022-01-04 17:28:36 +08:00
parent 07794d000c
commit 079a455181
6 changed files with 19 additions and 16 deletions

View File

@@ -117,8 +117,9 @@ router.beforeEach((to: toRouteType, _from, next) => {
route?.meta?.rank !== 0 &&
routePartent.length === 0
) {
if (!route?.meta?.refreshRedirect) return;
const { name, meta } = findRouteByPath(
route?.meta?.refreshRedirect,
route.meta.refreshRedirect,
routes
);
handTag(