diff --git a/src/app/canvas-share-data.service.ts b/src/app/canvas-share-data.service.ts index f93b7fb..b949cce 100644 --- a/src/app/canvas-share-data.service.ts +++ b/src/app/canvas-share-data.service.ts @@ -59,7 +59,7 @@ export class CanvasShareDataService { adjoin.CompanyId = sessionStorage.getItem('companyId'); item.PropertyInfos.forEach(element => { if (element.PropertyName === '方向') { - adjoin.Direction = element.PropertyValue; + adjoin.Direction = Number(element.PropertyValue); } else if (element.PropertyName === '名称/编号') { adjoin.Name = element.PropertyValue; } else if (element.PropertyType === PropertyType.Image) { @@ -84,7 +84,7 @@ export class CanvasShareDataService { adjoin.BuildingId = this.selectStorey.buildingId; item.PropertyInfos.forEach(element => { if (element.PropertyName === '方向') { - adjoin.Direction = element.PropertyValue; + adjoin.Direction = Number(element.PropertyValue); } else if (element.PropertyName === '名称/编号') { adjoin.Name = element.PropertyValue; } else if (element.PropertyType === PropertyType.Image) {