diff --git a/src/app/system-management/host-config/host-config.component.ts b/src/app/system-management/host-config/host-config.component.ts index 11c7b69..7b71fe8 100644 --- a/src/app/system-management/host-config/host-config.component.ts +++ b/src/app/system-management/host-config/host-config.component.ts @@ -301,7 +301,7 @@ sources:` password: '${item.password}' uri: '${item.uri}' type: ${item.type} - line-crossing-Entry: ${str} + line-crossing-Entry: [${str}] ` } else if (item.type == 2 && item.dimensionedPointsObj && item.dimensionedPointsObj.arrow.length != 0 && item.dimensionedPointsObj.arrowOfWest && item.dimensionedPointsObj.arrowOfWest.length == 0) { let arrowArr = item.dimensionedPointsObj.arrow @@ -312,14 +312,14 @@ sources:` password: '${item.password}' uri: '${item.uri}' type: ${item.type} - line-crossing-Entry: ${str} + line-crossing-Entry: [${str}] ` } else if (item.type == 2 && item.dimensionedPointsObj && item.dimensionedPointsObj.arrow.length != 0 && item.dimensionedPointsObj.arrowOfWest && item.dimensionedPointsObj.arrowOfWest.length != 0) { let arrowArr = item.dimensionedPointsObj.arrow let str = arrowArr[1].startX + ';' + arrowArr[1].startY + ';' + arrowArr[1].endX + ';' + arrowArr[1].endY + ';' + arrowArr[0].startX + ';' + arrowArr[0].startY + ';' + arrowArr[0].endX + ';' + arrowArr[0].endY let arrowArr2 = item.dimensionedPointsObj.arrowOfWest let str2 = arrowArr2[1].startX + ';' + arrowArr2[1].startY + ';' + arrowArr2[1].endX + ';' + arrowArr2[1].endY + ';' + arrowArr2[0].startX + ';' + arrowArr2[0].startY + ';' + arrowArr2[0].endX + ';' + arrowArr2[0].endY - let str3 = str + ';' + str2 + let str3 = '[' + str + ']' + ',' + '[' + str2 + ']' config4 += ` - name: '${item.name}' user: '${item.user}'