bug: 首页不受权限控制
All checks were successful
Release / lint (push) Successful in 28s
Release / Release (push) Successful in 1m22s

This commit is contained in:
my_ong 2024-12-18 12:53:06 +08:00
parent ee0525e62b
commit d1356f167c

View File

@ -92,7 +92,7 @@ export function fliteredMenus() {
return !item.hidden
})
.filter((item) => {
if (item.name === 'dashboard') return true // 首页显示
if (item.key === 'Dashboard') return true // 首页显示
return hasPermission(item.keyPath)
})
}