perf(format): code format
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user