ensure default tab loads
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details

This commit is contained in:
FloatingGhost 2022-08-31 16:41:10 +01:00
parent 6d44c67197
commit 271790cba0
1 changed files with 2 additions and 1 deletions

View File

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