use $route instead of $router.currentRoute

fix/no-extra-buttons
taehoon 5 years ago
parent 7c2982064e
commit 5881d92eb7

@ -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…
Cancel
Save