Merge pull request #18057 from expruc/perf/knowledge_page

Perf: knowledge page loading speed
This commit is contained in:
Tim Jaeryang Baek 2025-10-05 15:05:45 -05:00 committed by GitHub
commit c453d919b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 15 deletions

View File

@ -1,19 +1,5 @@
<script>
import { onMount } from 'svelte';
import { knowledge } from '$lib/stores';
import { getKnowledgeBases } from '$lib/apis/knowledge';
import Knowledge from '$lib/components/workspace/Knowledge.svelte';
onMount(async () => {
await Promise.all([
(async () => {
knowledge.set(await getKnowledgeBases(localStorage.token));
})()
]);
});
</script>
{#if $knowledge !== null}
<Knowledge />
{/if}
<Knowledge />