|
@@ -41,7 +41,7 @@ export default class AddRoad {
|
|
|
|
|
|
buildRoad() {
|
|
buildRoad() {
|
|
console.log("添加路!");
|
|
console.log("添加路!");
|
|
- if (mathUtil.clonePoint(this.startInfo.position, this.endInfo.position)) {
|
|
|
|
|
|
+ if (mathUtil.equalPoint(this.startInfo.position, this.endInfo.position)) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
let joinInfos = this.getJoinsForRoads();
|
|
let joinInfos = this.getJoinsForRoads();
|