jinx 2 years ago
parent
commit
22b2bd12a4
2 changed files with 4 additions and 1 deletions
  1. 1 1
      src/graphic/Renderer/Draw.js
  2. 3 0
      src/graphic/Service/DataService.js

+ 1 - 1
src/graphic/Renderer/Draw.js

@@ -1022,7 +1022,7 @@ export default class Draw {
     }px Microsoft YaHei`;
     const bound = help.getTextCenter(this.context, vector.value)
 
-    console.log(vector)
+    // console.log(vector)
     const screen = coordinate.getScreenXY(vector.center)
     this.drawTextByInfo(
       // vector.center,

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

@@ -134,6 +134,9 @@ export class DataService {
 
   deleteLine(lineId) {
     let line = this.getLine(lineId);
+    if(!line){
+      return
+    }
     let start = this.getPoint(line.startId);
     if (start) {
       let startParent = start.getParent();