forked from AkkomaGang/akkoma-fe
#417: reset tab status when active user changes
This commit is contained in:
parent
068da3cf9f
commit
10711f9045
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,11 @@ export default Vue.component('tab-switcher', {
|
||||||
active: this.$slots.default.findIndex(_ => _.tag)
|
active: this.$slots.default.findIndex(_ => _.tag)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
$route () {
|
||||||
|
this.activateTab(0)
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
activateTab (index) {
|
activateTab (index) {
|
||||||
return () => {
|
return () => {
|
||||||
|
|
Loading…
Reference in a new issue