Commit 7a27d37f authored by 李苏's avatar 李苏 💬

调整

parent cf64d323
......@@ -162,13 +162,18 @@
},
loadNode(node, resolve) {
if (node.level === 0) {
return resolve(this.rootArray);
return resolve([
{
id:'root',
name:'设备信息'
}
]);
} else {
const data = node.data
this.$post('sbgl/usbxx/queryroot', {
"pid": data.id
}).then(res => {
if (res.success && node.level < 1) {
if (res.success && node.level < 2) {
resolve(res.data.records)
} else {
res.data.records.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment