src/api/home/index.js
@@ -140,3 +140,24 @@
    data,
  });
};
/**
 * 获取当前面板绑定的设备列表
 */
export function getDeviceList() {
  return request({
    url: `/v1/device/list`,
    method: 'get'
  })
}
/**
 * 设定当前设备配置
 */
export function apiSetCurrentDeviceConfig(data) {
  return request({
    url: `/v1/device/config`,
    method: 'post',
    data
  })
}