feat(projects): 多页签绑定路由

This commit is contained in:
Soybean
2021-09-17 19:50:24 +08:00
parent eec0b36f59
commit f29bc05dd9
13 changed files with 195 additions and 65 deletions

View File

@ -1,5 +1,6 @@
import { useRouter, useRoute } from 'vue-router';
import type { RouteLocationRaw } from 'vue-router';
import { EnumRoutePath } from '@/enum';
import { router as globalRouter, RouteNameMap } from '@/router';
import type { LoginModuleType } from '@/interface';
@ -61,9 +62,14 @@ export default function useRouterChange(inSetup: boolean = true) {
}
}
function toReload(redirectUrl: string) {
router.push({ path: EnumRoutePath.reload, query: { redirectUrl } });
}
return {
toHome,
toLogin,
toCurrentLogin
toCurrentLogin,
toReload
};
}