feat: switch to global auth and tenant route prefix
This commit is contained in:
@@ -47,7 +47,9 @@ const login = async () => {
|
||||
life: 1000,
|
||||
});
|
||||
setTimeout(() => {
|
||||
router.push(tenantPath("/", route));
|
||||
const fallback = tenantPath("/", route);
|
||||
const target = route.query?.redirect || fallback;
|
||||
router.push(target);
|
||||
}, 1000);
|
||||
} catch (e) {
|
||||
toast.add({
|
||||
|
||||
Reference in New Issue
Block a user