diff --git a/04.系统编码/Frontend/src/components/RamanLidar.vue b/04.系统编码/Frontend/src/components/RamanLidar.vue index c1ecc52..4309d82 100644 --- a/04.系统编码/Frontend/src/components/RamanLidar.vue +++ b/04.系统编码/Frontend/src/components/RamanLidar.vue @@ -594,7 +594,7 @@ export default { } for(let y = 0; y < capacity; y++){ - matrix[index][y] = new Box(index, y, 0, 0, 0, y * 15, time, "米"); + matrix[index][y] = new Box(index, y, 0, 0, NaN, y * 15, time, "米"); } } return; @@ -612,7 +612,7 @@ export default { } let value = r.data[h][i]; - value = value == null ? 0 : value; + value = value == null ? NaN : value; matrix[tempIndex][h] = new Box(tempIndex, h, 0, 0, value, h * 15, time, "米"); } }