This commit is contained in:
2026-01-23 13:22:07 +08:00
parent 771db7e59a
commit 50371f9a2e
4 changed files with 135 additions and 15 deletions

View File

@@ -81,3 +81,11 @@ export const getStatics = async (): Promise<StaticsData> => {
throw error;
}
};
export const saveDraft = (content: string): void => {
localStorage.setItem('draft', content);
};
export const getDraft = (): string | null => {
return localStorage.getItem('draft');
};