From e25cb4a782b41658ccdfddfd57cca2deb6c1973e Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 18 Jan 2021 11:00:50 +0000 Subject: [PATCH] fix #252 --- src/views/Dashboard.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 1a697da..ad2cef3 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -764,9 +764,16 @@ export default { clientsTree: state => state.tree, treeReady: state => state.treeReady, clients: state => state.clients, - tab: state => state.defaultAgentTblTab, }), ...mapGetters(["selectedAgentPk", "needRefresh"]), + tab: { + get: function () { + return this.$store.state.defaultAgentTblTab; + }, + set: function (newVal) { + this.$store.commit("SET_DEFAULT_AGENT_TBL_TABd", newVal); + }, + }, allClientsActive() { return this.selectedTree === "" ? true : false; },