无人机管理后台前端(已迁走)
chenyao
2025-09-22 904c1a7f4e277f0ab5b9745cacdd5651d87db06e
src/views/resource/components/DrawPolygon.vue
@@ -214,7 +214,7 @@
  viewInstance.value.removeMouseHandler('drawCustomPolygon');
}
const emit = defineEmits(['upDateDrawState']);
const emit = defineEmits(['upDateDrawState',]);
function updatePolygon() {
  let polygon = savePolygonPosition.reduce((pre, cur) => {
@@ -222,7 +222,7 @@
    return pre;
  }, []);
  polygon.push(polygon[0]);
  console.log('绘制', `POLYGON((${polygon.join(',')}))`);
  // 接口
  sdfwUpdate({
     ids: selectionIds.value,
@@ -244,6 +244,7 @@
     })
}
function cancel() {
  remove();
  removeMenuPanel();