Merge branch 'pure-admin:main' into main

This commit is contained in:
Composure 2023-04-08 22:13:38 +08:00 committed by GitHub
commit c4cdade6e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

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

View File

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