Commit b3e8986a authored by XieZhiXiong's avatar XieZhiXiong

Merge branch 'fix0618-menu' into 'v2-220618'

fix: 处理25160首页没有权限页面报错问题 See merge request linkseeks-design/pro-admin!101
parents a7613251 3505e86f
......@@ -34,7 +34,7 @@ const OuterSider: React.FC<OuterSiderProps> = observer((props) => {
const subHeadMenus: Array<any> = []
menuData.forEach(item => {
// 为适配pass菜单自由组合变更, 使用code进行高亮显示
const code = currentRouter.relationParentCode
const code = currentRouter?.relationParentCode
// console.log(code, item.relationParentCode)
if (code && code === item.relationParentCode) {
defaultSelectedKeys = item.relationParentCode
......
......@@ -143,7 +143,7 @@ const BasicLayout: React.FC<any> = (props) => {
minWidth: '1280px',
}
: {}
return currentRouter.noLayout ? props.children : (
return currentRouter?.noLayout ? props.children : (
<ProLayout
pageTitleRender={() => currentRouter ? currentRouter.name : window.location.href}
// contentStyle={{minWidth: '1280px'}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment