Commit 5881d92e authored by Tae Hoon's avatar Tae Hoon

use $route instead of $router.currentRoute

parent 7c298206
......@@ -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: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment