路径规划打点完成 点击任务获取 路径轨迹

This commit is contained in:
mmc
2026-06-16 13:28:21 +08:00
parent a72ab15c56
commit a177498cdf
7 changed files with 80 additions and 32 deletions

View File

@@ -23,6 +23,13 @@ api.interceptors.request.use(
if (token && config.headers) {
config.headers['Authorization'] = `Bearer ${token}`;
}
if (!(config.data instanceof FormData)) {
config.headers['Content-Type'] = 'application/json';
} else {
// FormData 删除json头,交给axios自动生成multipart
delete config.headers['Content-Type'];
}
return config;
},
(error: AxiosError) => {