Explorar el Código

fix: http://192.168.0.21/index.php?m=bug&f=view&bugID=37857

jinx hace 2 años
padre
commit
0ccbd5622a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/graphic/Service/RoadService.js

+ 3 - 0
src/graphic/Service/RoadService.js

@@ -1084,6 +1084,9 @@ export default class RoadService {
   //单车道不考虑dir1
   setLanes(roadId, dir1, dir2) {
     let road = dataService.getRoad(roadId);
+    if(!road){
+      return
+    }
     if (road.way == Constant.oneWay) {
       this.setOneWayLanes(road, dir1, dir2);
     } else if (road.way == Constant.twoWay) {