fix(a11y): 无障碍与 lint 修复(对比度/alt 属性/触控目标收窄)+ Geist 本地字体系统
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user