自动清理本地存储
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useState } from 'react';
|
||||
import { getRevenueStatistics, getTodayExamStatistics, getUserOwnedMenus, getB1ServiceBoard, getNorth3ServiceBoard } from '../../api';
|
||||
import type { B1ServiceInfo, OutputNorth3ServiceBoard } from '../../api/types';
|
||||
import { Card, CardContent, CardHeader, InfoCard } from '../ui';
|
||||
import { cleanLocalStorageIfNeeded } from '../../utils/clean';
|
||||
|
||||
const APP_ID = 'b2b49e91d21446aeb14579930f732985';
|
||||
|
||||
@@ -38,6 +39,10 @@ export const HomeSection = () => {
|
||||
}), []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
// 清理本地存储
|
||||
cleanLocalStorageIfNeeded();
|
||||
|
||||
getTodayExamStatistics({})
|
||||
.then((res) => {
|
||||
const d = res.Data;
|
||||
|
||||
Reference in New Issue
Block a user