fix(ui): deduplicate layout-level API requests (#25942)

This commit is contained in:
G30 authored and GitHub committed 2026-06-17 00:09:50 +02:00
1 parent ee3a49a88d
commit 966b3fdb57
4 files changed
+7 -23

No files matched your search

+3
View File
@@ -14,6 +14,7 @@
import { getBanners } from '$lib/apis/configs';
import { getTerminalServers } from '$lib/apis/terminal';
import { getUserSettings } from '$lib/apis/users';
import { setTextScale } from '$lib/utils/text-scale';
import { WEBUI_VERSION, WEBUI_API_BASE_URL } from '$lib/constants';
import { compareVersion } from '$lib/utils';
@@ -105,6 +106,8 @@
settings.set(userSettings.ui);
}
setTextScale($settings?.textScale ?? 1);
if (cb) {
await cb();
}
@@ -1,11 +1,8 @@
<script>
import { goto } from '$app/navigation';
import { onMount } from 'svelte';
import Settings from '$lib/components/admin/Settings.svelte';
onMount(() => {
goto('/admin/settings/general');
});
</script>
<Settings />