解决优惠券导航选中,路由与一级菜单高亮不匹配

This commit is contained in:
Apple 2022-08-25 18:07:05 +08:00
parent fb97d83dcb
commit 17c2a620bd
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ export default class App extends Component {
item = activeMenuList?.filter((item) => item.id == 19) item = activeMenuList?.filter((item) => item.id == 19)
this.setState({ setrender: 6 }) this.setState({ setrender: 6 })
} }
if (pathnameNow.includes('coupon-list')) {
item = activeMenuList?.filter((item) => item.id == 195)
this.setState({ setrender: 7 })
}
if (item) { if (item) {
try { try {
item[0]?.children?.forEach((it) => { item[0]?.children?.forEach((it) => {