perf: export addPathMatch utils

This commit is contained in:
xiaoxian521 2023-03-07 21:05:23 +08:00
parent dedde7d47f
commit 1038f16783
2 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,7 @@ router.beforeEach((to: toRouteType, _from, next) => {
if (
usePermissionStoreHook().wholeMenus.length === 0 &&
to.path !== "/login"
)
) {
initRouter().then((router: Router) => {
if (!useMultiTagsStoreHook().getMultiTagsCache) {
const { path } = to;
@ -158,6 +158,7 @@ router.beforeEach((to: toRouteType, _from, next) => {
}
router.push(to.fullPath);
});
}
toCorrectRoute();
}
} else {

View File

@ -367,6 +367,7 @@ export {
ascending,
filterTree,
initRouter,
addPathMatch,
isOneOfArray,
getHistoryMode,
addAsyncRoutes,