mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 23:16:58 +08:00
Feat: If the user is not logged in, jump to the login page by refreshing. (#5451)
### What problem does this PR solve? Feat: If the user is not logged in, jump to the login page by refreshing. ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -56,3 +56,8 @@ export const getAuthorization = () => {
|
||||
};
|
||||
|
||||
export default storage;
|
||||
|
||||
// Will not jump to the login page
|
||||
export function redirectToLogin() {
|
||||
window.location.href = location.origin + `/login`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user