use $route instead of $router.currentRoute
This commit is contained in:
parent
7c2982064e
commit
5881d92eb7
@ -104,8 +104,7 @@ export default {
|
||||
},
|
||||
isActiveRoute () {
|
||||
const profileRoute = this.userProfileLink(this.user)
|
||||
const currentRoute = this.$router.currentRoute
|
||||
return profileRoute.name === currentRoute.name && isEqual(profileRoute.params, currentRoute.params)
|
||||
return profileRoute.name === this.$route.name && isEqual(profileRoute.params, this.$route.params)
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
Loading…
Reference in New Issue
Block a user