|
@@ -70,7 +70,10 @@ export default class MovePoint {
|
|
|
let line = dataService.getLine(key);
|
|
|
let startPoint = dataService.getPoint(line.startId);
|
|
|
let endPoint = dataService.getPoint(line.endId);
|
|
|
- if (mathUtil.getDistance(startPoint, endPoint) == 0) {
|
|
|
+ if (
|
|
|
+ mathUtil.getDistance(startPoint, endPoint) == 0 &&
|
|
|
+ startPoint.category != VectorCategory.Point.BasePoint //点重叠不应删除基准点
|
|
|
+ ) {
|
|
|
pointService.deletePoint(pointId);
|
|
|
}
|
|
|
}
|