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 () {
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: {