mirror of
https://github.com/open-webui/open-webui
synced 2025-05-31 11:00:49 +00:00
20 lines
373 B
Svelte
20 lines
373 B
Svelte
<script>
|
|
import { onMount } from 'svelte';
|
|
import { tools } from '$lib/stores';
|
|
|
|
import { getTools } from '$lib/apis/tools';
|
|
import Tools from '$lib/components/workspace/Tools.svelte';
|
|
|
|
onMount(async () => {
|
|
await Promise.all([
|
|
(async () => {
|
|
tools.set(await getTools(localStorage.token));
|
|
})()
|
|
]);
|
|
});
|
|
</script>
|
|
|
|
{#if $tools !== null}
|
|
<Tools />
|
|
{/if}
|