fix(video): develop

This commit is contained in:
zhangheng
2026-02-12 17:30:29 +08:00
parent 311a92f3fd
commit 6a5dbd776f
25 changed files with 229 additions and 54 deletions

View 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"

View File

@@ -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>({

View File

@@ -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,
})
}
}
})

View File

@@ -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) => {

View File

@@ -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) => {

View File

@@ -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) => {