use $route instead of $router.currentRoute

This commit is contained in:
taehoon 2019-07-23 15:04:28 -04:00
parent 7c2982064e
commit 5881d92eb7

View file

@ -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: {