若當前 home 的權(quán)限被設置為 ["auth1", "auth2", "auth3"],當前用戶的權(quán)限只要滿足一個就會判斷為擁有此路由的權(quán)限。動態(tài)菜單react-router-auth-plus 會自動將 children 傳給 Layout,你不必在路由配置里傳給 Layout。如果你是 ts,將 routers 類型設置為可選即可。useAuthMenus 會
www.dbjr.com.cn/article/2588...htm 2025-6-3