mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
암호 키 생성 후 내보내기 페이지로 이동하도록 구현
This commit is contained in:
14
src/routes/(fullscreen)/key/export/+page.ts
Normal file
14
src/routes/(fullscreen)/key/export/+page.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user