use $route instead of $router.currentRoute
This commit is contained in:
parent
7c2982064e
commit
5881d92eb7
1 changed files with 1 additions and 2 deletions
|
@ -104,8 +104,7 @@ export default {
|
||||||
},
|
},
|
||||||
isActiveRoute () {
|
isActiveRoute () {
|
||||||
const profileRoute = this.userProfileLink(this.user)
|
const profileRoute = this.userProfileLink(this.user)
|
||||||
const currentRoute = this.$router.currentRoute
|
return profileRoute.name === this.$route.name && isEqual(profileRoute.params, this.$route.params)
|
||||||
return profileRoute.name === currentRoute.name && isEqual(profileRoute.params, currentRoute.params)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
Loading…
Reference in a new issue