fix(labelnossr): fix bug

This commit is contained in:
zhangheng
2026-02-27 15:21:51 +08:00
parent 5f2d3c4be3
commit 6a19edbdfc
3 changed files with 5 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import {
} from "react"
import ScaleComponent from "./components/ScaleComponent"
import { processVideo } from "@/app/component/label/video2image/processVideo"
import { Box, Flex, LoadingOverlay, Stack } from "@mantine/core"
import { showNotification } from "@mantine/notifications"
import { getLabelResult, getServerImage } from "./api/label"
@@ -18,7 +19,6 @@ import { getProjectDetail } from "./api/project"
import { Project } from "./api/project/typing"
import { getTaskList, getTaskWorkFlow } from "./api/task"
import { Task } from "./api/task/typing"
import { processVideo } from "@/app/component/label/video2image/processVideo"
import BottomTools from "./components/BottomTools"
import ConfirmModal from "./components/ConfirmModal"
import { splitWord } from "./components/EditorContainer"
@@ -754,7 +754,7 @@ const LabelPage = ({
if (taskDetail) {
if (
![201, 202, 203, 500].includes(projectDetail!.status) ||
![2, 4, 6].includes(taskDetail.label_status) ||
![2, 4, 6, 7].includes(taskDetail.label_status) ||
taskDetail.current_uid !== user_id
) {
// 如果不是能标注的任务
@@ -1158,6 +1158,7 @@ const LabelPage = ({
showGroupList,
showDescList && projectDetail && projectDetail.label_type === 5,
showDescList && projectDetail && projectDetail.label_type === 6,
showDescList && projectDetail && projectDetail.label_type === 7,
showObjectList,
]
let count = 0