自动清理本地存储

This commit is contained in:
xianyi
2025-12-24 15:21:25 +08:00
parent e118538557
commit 96de419e52
3 changed files with 85 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ export const ExamSignPanel = ({ examId, onBusyChange }: ExamSignPanelProps) => {
return () => onBusyChange?.(false);
}, [busy, onBusyChange]);
const SIGN_STORAGE_KEY = 'yh_signed_consents';
const SIGN_STORAGE_KEY = `yh_signed_consents_${new Date().toISOString().slice(0, 10)}`;
const handlePickFile = () => {
fileInputRef.current?.click();