路径规划打点功能和 点击任务池中数据在地图上显示 初步
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user