自动清理本地存储

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

@@ -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;