암호 키 생성 후 내보내기 페이지로 이동하도록 구현

This commit is contained in:
static
2024-12-27 21:23:47 +09:00
parent 98512a0710
commit 400438c395
9 changed files with 107 additions and 48 deletions

View File

@@ -0,0 +1,14 @@
import { error } from "@sveltejs/kit";
import { get } from "svelte/store";
import { keyExportState } from "$lib/hooks/goto";
import type { PageLoad } from "./$types";
export const load: PageLoad = async () => {
const state = get(keyExportState);
if (!state) {
error(403, "Forbidden");
}
keyExportState.set(null);
return state;
};