fix(video): develop
This commit is contained in:
4
components/label/api/const.ts
Normal file
4
components/label/api/const.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const BASE_LABEL_API =
|
||||
process.env.NEXT_PUBLIC_ENV === "production"
|
||||
? "https://label.cowarobot.com"
|
||||
: "http://172.16.112.8:9110"
|
||||
@@ -1,7 +1,7 @@
|
||||
import httpFetch from "@/api/fetch"
|
||||
import { usePermissionStore } from "../../store/auth"
|
||||
import { BASE_LABEL_API } from "../label"
|
||||
import { Daily } from "./typing"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
|
||||
export const getDailyWorkList = (data: Daily.Request) => {
|
||||
return httpFetch<Daily.Response>({
|
||||
|
||||
@@ -6,8 +6,7 @@ import {
|
||||
RequestLabelResult,
|
||||
ServerResponse,
|
||||
} from "./typing"
|
||||
|
||||
export const BASE_LABEL_API = "https://label.cowarobot.com"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
|
||||
// 获取标注结果
|
||||
export const getLabelResult = (task_id: number) => {
|
||||
@@ -58,7 +57,9 @@ export const getServerImage = async (data: {
|
||||
} else {
|
||||
if (res.data_list && res.data_list.length) {
|
||||
const { image_data } = res.data_list[0]
|
||||
resolve({ image_data })
|
||||
resolve({
|
||||
image_data,
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import httpFetch from "@/api/fetch"
|
||||
import { usePermissionStore } from "../../store/auth"
|
||||
import { BASE_LABEL_API } from "../label"
|
||||
import { Project, ProjectDetail, ReviewUsers } from "./typing"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
|
||||
// 获取项目列表
|
||||
export const getProjectList = (data: Project.ListRequest) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import httpFetch from "@/api/fetch"
|
||||
import { usePermissionStore } from "../../store/auth"
|
||||
import { BASE_LABEL_API } from "../label"
|
||||
import { Scheme } from "./typing"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
|
||||
// 获取标注方案列表
|
||||
export const getLabelSchemeList = (params: Scheme.ListRequest) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import httpFetch from "@/api/fetch"
|
||||
import { usePermissionStore } from "../../store/auth"
|
||||
import { BASE_LABEL_API } from "../label"
|
||||
import { Task } from "./typing"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
|
||||
// 获取任务列表
|
||||
export const getTaskList = (data: Task.ListRequest) => {
|
||||
|
||||
Reference in New Issue
Block a user