Commit e0073c4b authored by suhuiguang's avatar suhuiguang

1.修改缺陷868

parent 5d562060
...@@ -1087,7 +1087,10 @@ class View3D extends Component { ...@@ -1087,7 +1087,10 @@ class View3D extends Component {
if (selectArea && selectArea.id) { if (selectArea && selectArea.id) {
getPointsByRegionIdAction(selectArea.id).then(d => { getPointsByRegionIdAction(selectArea.id).then(d => {
if (d && d.length === 0){ if (d && d.length === 0){
if (!routePathData.some(r=> r.riskSourceId === selectArea.id)){ const index = routePathData.findIndex(item=>item.riskSourceId === selectArea.id);
if (index >= 0) {
routePathData[index].routePath = '';
} else {
routePathData.push({ routePathData.push({
riskSourceId: selectArea.id, riskSourceId: selectArea.id,
routePath: '' routePath: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment