forked from drone/command-center-dashboard

chenyao
2025-04-12 80790ccc8b8ee6ac8db201f0f6c2d136fefd5a69
src/views/Home/useMapAggregation/useMapAggregation.js
@@ -422,6 +422,12 @@
    }
  }
  /**
   * 根据条件获取项
   * @param {Array} arr 数据源
   * @param {Function} condition 条件
   * @returns
   */
  const findTypeItem = (arr, condition) => {
    return arr.find(item => condition(item))
  }
@@ -451,7 +457,6 @@
    }
    if (deviceFind) {
      store.commit('setSingleUavHome', { id: '123' })
      viewer.scene.postRender.addEventListener(labelBoxRender)
    }
  }