src/components/LayerController/logic/SourcesPollution.js
@@ -14,9 +14,23 @@ layer: layer }) const result = await mapApi.getSourcesPoll() console.log(result) // console.log(result) const resultData = result.Result.DataInfo || [] const polygon = L.polygon(resultData, { color: 'yellow' }) polygon.addTo(layer) } this.bindTooltip = (layer) => { return 'layer' } this.click = () => { window.$layer.open({ content: { content: 'Popup', // 组件 data: { // 传递的参数 datas: 'popupDatas' } }, title: '' }) } }