Browse Source

修复bug

xushiting 2 years ago
parent
commit
1c3d3a2358
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/graphic/Service/LineService.js

+ 1 - 1
src/graphic/Service/LineService.js

@@ -175,7 +175,7 @@ export default class LineService {
     let newPoint = curvePointService.create(position);
     newPoint.setIndex(index);
     newPoint.setPointParent(vectorId);
-    curveLine.points.splice(index + 1, 0, newPoint);
+    curveLine.points.splice(index, 0, newPoint);
     for (let i = index + 1; i < curveLine.points.length; ++i) {
       curveLine.points[i].setIndex(i);
     }