Commit 87e31f24 authored by 邓晓峰's avatar 邓晓峰

fix: 修复二级菜单切换时候BUG

parent 698856ee
Pipeline #34755 passed with stages
in 30 minutes 25 seconds
......@@ -456,7 +456,7 @@ const BasicLayout = props => {
<Tooltip placement="right" title={collapse ? currentRoutes.name: ''}>
<a>
{
(currentRoutes && currentRoutes.extData && currentRoutes.extData.icon) && /.svg/.test(currentRoutes.extData.icon) ? <ReactSVG src={currentRoutes.extData.icon} style={{width: '22px', height: '22px'}} className={classNames(layoutStyles.icon, layoutStyles.fillCurrent)}/>: currentRoutes && <img src={currentRoutes.extData.icon} />
(currentRoutes && currentRoutes.extData && currentRoutes.extData.icon) && <img src={currentRoutes.extData.icon} />
}
{
collapse ? null: <span>{currentRoutes && currentRoutes.name}</span>
......
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