ruoyi-plus-soybean/src/utils/auth/location.ts

15 lines
341 B
TypeScript
Raw Normal View History

2021-09-14 01:31:29 +08:00
/** 获取登录重定向的地址 */
export function getLoginRedirectUrl() {
return window.location.href;
}
/** 登录后跳转重定向的地址 */
export function toLoginRedirectUrl(redirectUrl: string) {
window.location.href = redirectUrl;
}
/** 回到首页 */
export function toHomeByLocation() {
window.location.href = '/';
}