mirror of
https://github.com/open-webui/open-webui
synced 2024-11-08 17:49:57 +00:00
13 lines
226 B
Svelte
13 lines
226 B
Svelte
|
<script>
|
||
|
import { config, user } from '$lib/stores';
|
||
|
import { goto } from '$app/navigation';
|
||
|
|
||
|
if ($config && $config.auth && $user === undefined) {
|
||
|
goto('/auth');
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
{#if $config !== undefined}
|
||
|
<slot />
|
||
|
{/if}
|