mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-16 11:05:03 +00:00
Initial port to vue 3
This commit is contained in:
parent
e1966534d5
commit
454981fa1f
14 changed files with 1906 additions and 1804 deletions
|
@ -21,9 +21,11 @@ export const loginCallbackGuard: NavigationGuard = async (to, from, next) => {
|
|||
} else {
|
||||
window.location.href = `/?error=noAccess`;
|
||||
}
|
||||
return next();
|
||||
};
|
||||
|
||||
export const authRedirectGuard: NavigationGuard = async (to, form, next) => {
|
||||
if (await isAuthenticated()) return next("/dashboard");
|
||||
window.location.href = `${process.env.API_URL}/auth/login`;
|
||||
return next();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue