ensure default tab loads
This commit is contained in:
parent
6d44c67197
commit
271790cba0
1 changed files with 2 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue