fix: Optimize sidebar refresh to avoid redundant loading states

This commit is contained in:
RedwindA
2025-09-29 22:16:25 +08:00
parent 59e2c884bb
commit c00e5ca201
3 changed files with 39 additions and 11 deletions

View File

@@ -40,7 +40,7 @@ export const useHeaderBar = ({ onMobileMenuToggle, drawerOpen }) => {
const location = useLocation();
const loading = statusState?.status === undefined;
const isLoading = useMinimumLoadingTime(loading);
const isLoading = useMinimumLoadingTime(loading, 200);
const systemName = getSystemName();
const logo = getLogo();