perf(format): code format

This commit is contained in:
zhangheng
2026-02-27 10:21:43 +08:00
parent 6cb8f98004
commit e3ca3e9c31
15 changed files with 257 additions and 142 deletions

View File

@@ -1,11 +1,11 @@
import httpFetch from "@/api/fetch"
import { BASE_LABEL_API } from "../const"
import {
LabelResult,
LoginInfo,
RequestLabelResult,
ServerResponse,
} from "./typing"
import { BASE_LABEL_API } from "../const"
// 获取标注结果
export const getLabelResult = (task_id: number) => {
@@ -31,7 +31,7 @@ export const saveLabelResult = (data: RequestLabelResult) => {
export const getServerImage = async (data: {
data_names: string[]
/**
* 0-图片 1-点云
* 0-图片 1-点云 2-视频
*/
data_type: number
flag?: number

View File

@@ -58,7 +58,8 @@ export const newSyncTask = (data: {
// 更新同步任务状态
export const updateSyncTaskStatus = (id: number, status: number) => {
return httpFetch({
url: BASE_LABEL_API + `/api/v1/label_server/data_sync/update_sync_task/${id}`,
url:
BASE_LABEL_API + `/api/v1/label_server/data_sync/update_sync_task/${id}`,
method: "PUT",
body: JSON.stringify({ status }),
})