浏览代码

修改bug

bill 2 年之前
父节点
当前提交
babb538c61
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 4 4
      src/graphic/Renderer/Draw.js
  2. 6 6
      src/views/graphic/geos/road.vue

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

@@ -822,10 +822,10 @@ export default class Draw {
     ctx.restore();
 
     // if (import.meta.env.DEV) {
-    lines.map((line) => {
-      this.drawPoint(line.start);
-      this.drawPoint(line.end);
-    });
+    // lines.map((line) => {
+    //   this.drawPoint(line.start);
+    //   this.drawPoint(line.end);
+    // });
     // }
   }
 

+ 6 - 6
src/views/graphic/geos/road.vue

@@ -35,12 +35,12 @@ const appendMenus =
           text: "加控制点",
           onClick: clickHandlerFactory(VectorEvents.AddCrossPoint),
         },
-        {
-          key: VectorEvents.MinusCrossPoint,
-          icon: "control_d",
-          text: "减控制点",
-          onClick: clickHandlerFactory(VectorEvents.MinusCrossPoint),
-        },
+        // {
+        //   key: VectorEvents.MinusCrossPoint,
+        //   icon: "control_d",
+        //   text: "减控制点",
+        //   onClick: clickHandlerFactory(VectorEvents.MinusCrossPoint),
+        // },
       ]
     : [];
 const menus = ref([