jinx 2 年之前
父節點
當前提交
22b2bd12a4
共有 2 個文件被更改,包括 4 次插入1 次删除
  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();