refactor:优化逻辑

This commit is contained in:
妙码生花 2023-12-20 16:24:42 +08:00
parent 0767484f73
commit faa3cf24ec

View File

@ -113,7 +113,7 @@ export const handleFrontendRoute = (routes: any, menus: any) => {
memberCenter.mergeAuthNode(handleAuthNode(menus, menuMemberCenterBaseRoute))
memberCenter.mergeNavUserMenus(handleMenuRule(menus, '/', ['nav_user_menu']))
memberCenter.setShowHeadline(menus.length > 1 ? true : false)
memberCenter.setShowHeadline(menus.length > 1)
memberCenter.setViewRoutes(handleMenuRule(menus, menuMemberCenterBaseRoute))
}
}