Commit 4629f5e43c08e0ff3a23ccdbdec6482c4ceeadef
1 parent
26daf2ef
fix bug
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/community/houses/index.vue
| ... | ... | @@ -146,12 +146,12 @@ watchEffect(() => { |
| 146 | 146 | <el-table border :data="data.tableList"> |
| 147 | 147 | <el-table-column label="所属小区" prop="name"> |
| 148 | 148 | <template #default="scope"> |
| 149 | - <span>{{ scope.row.building.neighborhood.name }}</span></template | |
| 149 | + <span>{{ scope.row.building?.neighborhood?.name }}</span></template | |
| 150 | 150 | > |
| 151 | 151 | </el-table-column> |
| 152 | 152 | <el-table-column label="楼宇名称" prop="buildingName"> |
| 153 | 153 | <template #default="scope"> |
| 154 | - <span>{{ scope.row.building.buildingName }}</span></template | |
| 154 | + <span>{{ scope.row.building?.buildingName }}</span></template | |
| 155 | 155 | > |
| 156 | 156 | </el-table-column> |
| 157 | 157 | <el-table-column label="单元数" prop="unitCount"></el-table-column> | ... | ... |