fix refresh site bug

This commit is contained in:
wh1te909 2020-02-23 09:58:10 +00:00
parent 7d2f0dd8a7
commit 5dd64946b5
1 changed files with 10 additions and 3 deletions

View File

@ -177,7 +177,13 @@ export default {
methods: {
refreshEntireSite() {
this.$store.dispatch("loadTree");
this.loadAllClients();
if (this.allClientsActive) {
this.loadAllClients();
} else {
this.loadFrame(this.selectedTree, false);
}
if (this.selectedAgentPk) {
const pk = this.selectedAgentPk;
this.$store.dispatch("loadSummary", pk);
@ -186,8 +192,9 @@ export default {
this.$store.dispatch("loadInstalledSoftware", pk);
}
},
loadFrame(activenode) {
this.$store.commit("destroySubTable");
loadFrame(activenode, destroySub=true) {
if (destroySub) this.$store.commit("destroySubTable");
let client, site, url;
try {
client = this.$refs.tree.meta[activenode].parent.key.split('|')[0];