Merge branch 'zh' into 'main'

Zh

See merge request prism/lable/labelmain!26
This commit is contained in:
刘耀勇
2026-05-28 15:27:54 +08:00
2 changed files with 8 additions and 3 deletions

View File

@@ -8,10 +8,10 @@ import {
usePermissionStore, usePermissionStore,
} from "@/components/label/store/auth" } from "@/components/label/store/auth"
import { import {
SettingCustomPageSizeControl,
SettingDataTable, SettingDataTable,
SettingHeaderActions, SettingHeaderActions,
SettingListHeader, SettingListHeader,
SettingCustomPageSizeControl,
usePersistentPageSizeOptions, usePersistentPageSizeOptions,
} from "@/components/setting/PageSurface" } from "@/components/setting/PageSurface"
import { Button, Group, Stack, Text, UnstyledButton } from "@mantine/core" import { Button, Group, Stack, Text, UnstyledButton } from "@mantine/core"
@@ -97,7 +97,7 @@ export default function PersonalTaskTable() {
<UnstyledButton <UnstyledButton
onClick={async () => { onClick={async () => {
setCurrentRowId(record.id) setCurrentRowId(record.id)
if ([4, 5, 6, 7].includes(record.label_type)) { if ([1, 2, 4, 5, 6, 7].includes(record.label_type)) {
setBackProps(`/person/dashboard`) setBackProps(`/person/dashboard`)
if ([4, 5, 6].includes(record.label_type)) { if ([4, 5, 6].includes(record.label_type)) {
// router.replace( // router.replace(
@@ -109,6 +109,8 @@ export default function PersonalTaskTable() {
// `/video/label?project_id=${record.project_id}&task_id=${record.id}` // `/video/label?project_id=${record.project_id}&task_id=${record.id}`
// ) // )
window.location.href = `/video/label?project_id=${record.project_id}&task_id=${record.id}` window.location.href = `/video/label?project_id=${record.project_id}&task_id=${record.id}`
} else if ([1, 2].includes(record.label_type)) {
window.location.href = `/lidar/lidar-point?project_id=${record.project_id}&task_id=${record.id}`
} }
} else { } else {
// await runCommand( // await runCommand(

View File

@@ -174,7 +174,10 @@ export const theme = createTheme({
color: "#4E5969", color: "#4E5969",
}, },
arrow: { arrow: {
borderColor: "#E5E6EB", borderTopColor: "#E5E6EB",
borderRightColor: "#E5E6EB",
borderBottomColor: "#E5E6EB",
borderLeftColor: "#E5E6EB",
background: "#FFFFFF", background: "#FFFFFF",
}, },
} }