fix(a11y): 无障碍与 lint 修复(对比度/alt 属性/触控目标收窄)+ Geist 本地字体系统

This commit is contained in:
2026-08-31 12:03:32 +08:00
parent 0786af3db9
commit b65ddd1ff7
20 changed files with 125 additions and 76 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ export function AdminLayout({ children }: { children: React.ReactNode }) {
return next;
});
}
}, [pathname]);
}, [pathname]); // eslint-disable-line react-hooks/exhaustive-deps -- getExpandedMenusForPath 为组件内函数(引用随渲染变化),effect 已用 prevPathname 变更保护,刻意不列入依赖
const toggleMenu = (label: string) => {
setExpandedMenus((prev) => {