Switch to View tab on connect
This commit is contained in:
parent
6ddbb1f765
commit
952085fee7
2 changed files with 12 additions and 1 deletions
|
|
@ -244,7 +244,16 @@ export default {
|
|||
);
|
||||
},
|
||||
|
||||
mounted: function() {},
|
||||
mounted() {
|
||||
// A global signal listener to switch tab
|
||||
this.$root.$on("globalSwitchTab", tabID => {
|
||||
this.currentTab = tabID;
|
||||
});
|
||||
// A global signal listener to the first primary tab
|
||||
this.$root.$on("globalSwitchTabPrimary", () => {
|
||||
this.currentTab = "view";
|
||||
});
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
// Then we call that function here to unwatch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue