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();