fix: resolve - first draw dont show preview image

This commit is contained in:
2026-02-09 10:12:54 +05:00
parent c4103e937d
commit 94060630ef
3 changed files with 31 additions and 67 deletions
+7 -1
View File
@@ -1,7 +1,9 @@
<script lang="ts">
import AppHeader from "$components/layout/AppHeader.svelte";
import { PANEL_SETTINGS } from "$lib/constants";
import { imageConfigState } from "$states/imageConfig.svelte";
import { themeState } from "$states/theme.svelte";
import type { Snippet } from "svelte";
import { onMount, type Snippet } from "svelte";
interface Props {
children: Snippet;
@@ -14,6 +16,10 @@
});
let { children }: Props = $props();
onMount(async () => {
await imageConfigState.uploadImageByLink(PANEL_SETTINGS.DEFAULT_BACKGROUND_IMAGE);
});
</script>
<div class="container">