15 lines
268 B
Svelte
15 lines
268 B
Svelte
<script>
|
|
import { redirect } from "@roxi/routify"
|
|
import { auth } from "stores/portal"
|
|
|
|
auth.checkQueryString()
|
|
|
|
$: {
|
|
if ($auth.user?.builder?.global) {
|
|
$redirect(`./portal`)
|
|
} else if ($auth.user) {
|
|
$redirect(`./apps`)
|
|
}
|
|
}
|
|
</script>
|