We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内容跟着换了,侧边栏没有匹配高亮效果,还是上一个路由的高亮
The text was updated successfully, but these errors were encountered:
componentWillMount() { let { keys, values, entries } = Object const pathname = this.props.location.pathname const _current = pathname === '/' ? introduce : pathname.substr(0, 1) === '/' ? pathname.substr(1) : pathname const hasKeys = SideMenus.filter(value => { return value.key !== _current && value.groups }) let findKyes = [] if (hasKeys.length > 0) { findKyes = hasKeys.filter(value => { for (let value of values(value.groups)) { return value.key === _current } }) } let _openKeys = [] findKyes.length > 0 ? _openKeys.push(findKyes[0].key) : _openKeys.push('introduce') this.setState({ current: _current, openKeys: _openKeys }); }
本人是这么处理的,不太优雅
Sorry, something went wrong.
https://github.com/zuiidea/antd-admin/pull/214/commits
No branches or pull requests
内容跟着换了,侧边栏没有匹配高亮效果,还是上一个路由的高亮
The text was updated successfully, but these errors were encountered: