路径规划打点功能和 点击任务池中数据在地图上显示 初步

This commit is contained in:
mmc
2026-06-15 20:54:41 +08:00
parent 6e312871b8
commit a72ab15c56
5 changed files with 399 additions and 10 deletions

View File

@@ -402,6 +402,25 @@ export function getRouteByTask(params) {
})
}
//增加预设路径iot/workRecord/add
export function addRoute(data) {
const config = {
url: '/iot/workRecord/add', // 修正为正确的添加接口
method: 'post',
data
};
// 如果是 FormData,不需要设置 Content-Type,axios 会自动设置
if (!(data instanceof FormData)) {
config.headers = {
'Content-Type': 'application/json'
};
}
return request(config);
}