Update main.js

This commit is contained in:
钟进 2018-09-26 14:06:51 +08:00
parent d585b3cf5c
commit 815904ef41

18
main.js
View File

@ -340,10 +340,24 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects)
name: 'add',
obj: objects[id]
});
newObjects.push(id);
}
if (regs.length) {
tasks.push({
id: regName,
name: 'add',
obj: {
type: 'channel',
common: {
name: regFullName
},
native: {}
}
});
}
}
function sortByAddress(a, b) {