src/views/layerManagement/components/utils.js
@@ -116,6 +116,8 @@ console.log('当前不允许绘制,whetherToDraw 为 false'); return; } this.drawingMode = true this.curPolygon = new Cesium.PolygonHierarchy() @@ -334,12 +336,15 @@ // 如果不是绘制模式 if (!this.drawingMode) { if (!isPolygon) { this.editingMode = false this.editPolygonPointDataSource.entities.show = false return } if (isPolygon) { this.editingMode = true this.editPolygonPointDataSource.entities.show = true }