admin/src/views/operation/site.vue
@@ -92,7 +92,6 @@ }, methods: { changeMap(e, row) { console.log(e); updateById({ ...row, electronicFence: JSON.stringify(e) }).then(res => { if (res) { Message.success('设置成功') @@ -104,9 +103,9 @@ this.$refs.MapRef.isShowModal = true this.$nextTick(() => { this.$refs.MapRef.row = row // if (row.electronicFence) { // this.$refs.MapRef.polygons = JSON.parse(row.electronicFence) // } if (row.electronicFence) { this.$refs.MapRef.polygons = JSON.parse(row.electronicFence) } this.$refs.MapRef.initMap() })