mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 14:20:21 +08:00
refactor(projects): 登录重定向地址相关重构
This commit is contained in:
@@ -1,2 +1 @@
|
||||
export { getToken, setToken, removeToken, getUserInfo, resetAuthStorage, getLoginModuleRegExp } from './user';
|
||||
export { getLoginRedirectUrl, toLoginRedirectUrl } from './location';
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/** 获取登录重定向的地址 */
|
||||
export function getLoginRedirectUrl() {
|
||||
return window.location.href;
|
||||
}
|
||||
|
||||
/** 登录后跳转重定向的地址 */
|
||||
export function toLoginRedirectUrl(redirectUrl: string) {
|
||||
window.location.href = redirectUrl;
|
||||
}
|
||||
Reference in New Issue
Block a user