Browse Source

bug:37392

jinx 2 years ago
parent
commit
3bc215f767
2 changed files with 6 additions and 3 deletions
  1. 5 2
      src/graphic/Load.js
  2. 1 1
      src/main.ts

+ 5 - 2
src/graphic/Load.js

@@ -216,7 +216,7 @@ export default class Load {
           if(dataLocal.roadEdges){ //当roadEdge有样式的时候需要设置
             for(let edgeKey in dataLocal.roadEdges){
               let roadId = dataLocal.roadEdges[edgeKey].parent
-              if(roadId== key ){
+              if(roadId == key ){
                 for(let roadKey in dataLocal.roads[key]){
                   if( roadKey == 'leftEdgeId' && dataLocal.roads[key][roadKey] == dataLocal.roadEdges[edgeKey].vectorId){
                     let leftEdge = dataService.getRoadEdge(road.leftEdgeId);
@@ -258,6 +258,7 @@ export default class Load {
             dataLocal.curveRoads[key].endId,
             dataLocal.curveRoads[key].vectorId,
           );
+    
         }
       }
       if (dataLocal.texts) {
@@ -327,7 +328,9 @@ export default class Load {
               this.getXY(width, height, data3d.measures[i].pos[1]),
               VectorCategory.Line.MeasureLine
             );
-            line.value = data3d.measures[i].dis;
+            if(data3d.measures[i].dis){
+              line.value = data3d.measures[i].dis;
+            }
           }
         }
         if (data3d.basePoints) {

+ 1 - 1
src/main.ts

@@ -1,7 +1,7 @@
 import VConsole from 'vconsole';
 if (import.meta.env.MODE === "test") {
   if (!os.isPc) {
-    new VConsole();
+    // new VConsole();
   }
 }