Skip to content

Commit

Permalink
#560 fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsenfeng committed Jan 17, 2020
1 parent 17787aa commit b5a2214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmdb-ui/src/pages/designing/resource-planning.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default {
const [idcData, links] = await Promise.all(promiseArray)
if (idcData.statusCode === 'OK' && links.statusCode === 'OK') {
this.idcData = []
let logiceNetZone = {}
let logicNetZone = {}
idcData.data.forEach(_ => {
if (!_.data.regional_data_center) {
let obj = {
Expand All @@ -187,15 +187,15 @@ export default {
this.idcData.push(obj)
} else if (_.data.regional_data_center && _.children instanceof Array) {
_.children.forEach(zone => {
logiceNetZone[zone.guid] = zone
logicNetZone[zone.guid] = zone
})
}
})
idcData.data.forEach(_ => {
if (!_.data.regional_data_center && _.children instanceof Array) {
_.children.forEach(zone => {
if (zone.children instanceof Array) {
zone.children = zone.children.filter(item => !!logiceNetZone[item.guid])
zone.children = zone.children.filter(item => !!logicNetZone[item.guid])
}
})
}
Expand Down

0 comments on commit b5a2214

Please sign in to comment.