From b8a1cfbfe7979ba735152a9c24427a4ddf92e3f1 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 31 May 2020 01:52:06 +0000 Subject: [PATCH] fix main tree --- web/src/views/Dashboard.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/views/Dashboard.vue b/web/src/views/Dashboard.vue index da4cad0e..6a8f504b 100644 --- a/web/src/views/Dashboard.vue +++ b/web/src/views/Dashboard.vue @@ -202,12 +202,12 @@ export default { let client, site, url; try { - client = this.$refs.tree.meta[activenode].parent.key.split("|")[0]; - site = activenode.split("|")[0]; + client = this.$refs.tree.meta[activenode].parent.key.split("|")[1]; + site = activenode.split("|")[1]; url = `/agents/bysite/${client}/${site}/`; } catch (e) { try { - client = activenode.split("|")[0]; + client = activenode.split("|")[1]; } catch (e) { return false; }