diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 3e3f3445..89cd95fd 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -48,7 +48,8 @@ const UserProfile = { }, created () { const routeParams = this.$route.params - this.tab = get(this.$route, 'hash', defaultTabKey).replace(/^#/, '') + const hash = get(this.$route, 'hash', defaultTabKey).replace(/^#/, '') + if (hash !== '') this.tab = hash this.load(routeParams.name || routeParams.id) }, unmounted () {