This commit is contained in:
helinfeng 2025-06-27 11:36:45 +08:00
parent 7a42daa920
commit 39fa2610df
1 changed files with 1 additions and 6 deletions

View File

@ -247,12 +247,7 @@ class NewHeader extends Component {
matchpaths = (url) => {
const { match } = this.props;
if (url) {
// if (match.path.indexOf(url) > -1) {
if (match.path == url) {
return true
} else {
return false
}
return match.path.includes(url)
}
}