feat: switch to global auth and tenant route prefix

This commit is contained in:
2026-01-26 18:04:05 +08:00
parent 8addf6f900
commit cde4fb8594
25 changed files with 479 additions and 7196 deletions

View File

@@ -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({