pull/1/head
Saeid 5 years ago
parent 693f5c05e3
commit 1dc5dc706a

@ -1,6 +1,6 @@
{
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=09de9d4c63b5e0125c97",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=fafb3d0743bc753d4653",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=250d91b530c33e1e6c40",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=c0c46572f483bd5de29c"
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=f7a4211f63d8c9b0e866",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=16ec31ea2fe142f759a2",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=a34424bae779351e8015",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=9b9201bf682c177f6a9c"
}

@ -216,12 +216,18 @@ const insertTreeArray = (
if (hierarchy.hasOwnProperty(key)) {
if (key == 0) {
if (hierarchy.length - 1 == key) {
if (typeof array[hierarchy[key]]["children"] != 'array') {
array[hierarchy[key]]["children"] = [];
}
array[hierarchy[key]]["children"].push(store);
} else {
array = array[hierarchy[key]];
}
} else {
if (hierarchy.length - 1 == key) {
if (typeof array["children"][hierarchy[key]]["children"] != 'array') {
array["children"][hierarchy[key]]["children"] = [];
}
array["children"][hierarchy[key]]["children"].push(store);
} else {
array = array["children"][hierarchy[key]];

Loading…
Cancel
Save