#417: reset tab status when active user changes

This commit is contained in:
dave 2019-03-03 12:15:55 -05:00
parent 068da3cf9f
commit 10711f9045
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@ export default Vue.component('tab-switcher', {
active: this.$slots.default.findIndex(_ => _.tag)
}
},
watch: {
$route () {
this.activateTab(0)
}
},
methods: {
activateTab (index) {
return () => {