mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 15:08:46 +00:00
Store 초기화를 hooks.client.ts에서 수행하도록 변경
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import { goto } from "$app/navigation";
|
||||
import { Button, TextButton } from "$lib/components/buttons";
|
||||
import { TitleDiv, BottomDiv } from "$lib/components/divs";
|
||||
@@ -44,9 +45,9 @@
|
||||
});
|
||||
};
|
||||
|
||||
$effect(() => {
|
||||
onMount(async () => {
|
||||
if ($clientKeyStore) {
|
||||
goto(data.redirectPath);
|
||||
await goto(data.redirectPath);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user