forked from drone/command-center-dashboard

chenyao
2025-04-01 523bb8621ab2e37f4882ce82b4001e2ba24a3810
src/api/home/machineNest.js
@@ -3,7 +3,7 @@
// 机巢统计
export const getDeviceInfoNum = () => {
  return request({
    url: 'drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
    url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
    method: 'get',
    params: {},
  });
@@ -11,7 +11,7 @@
// 机巢列表
export const selectDevicePage = (params) => {
  return request({
    url: `drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}&current=${params.current}&size=${params.size}`,
    url: `/drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}&current=${params.current}&size=${params.size}`,
    method: 'post',
    data: {
      nickname: params.nickname,
@@ -22,7 +22,7 @@
// 机巢数据
export const getFlightStatistics = (dockSn) => {
  return request({
    url: `drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
    url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
    method: 'get',
    params: {},
  });