mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 多页签绑定路由
This commit is contained in:
@ -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
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user