fix main tree

This commit is contained in:
wh1te909 2020-05-31 01:52:06 +00:00
parent 6a92fd06bd
commit b8a1cfbfe7
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}