fix(bug): fix router

This commit is contained in:
zhangheng
2026-03-27 16:18:44 +08:00
parent 5cbdd259ab
commit 336adc766e
7 changed files with 153 additions and 23 deletions

View File

@@ -2,7 +2,7 @@
import { getPersonProjectDashBoard } from "@/components/label/api/project"
import { Project } from "@/components/label/api/project/typing"
import { Button, Group, Text, UnstyledButton } from "@mantine/core"
import { Button, Group, Text } from "@mantine/core"
import { IconRefresh } from "@tabler/icons-react"
import dayjs from "dayjs"
@@ -76,15 +76,16 @@ export default function PersonalProjectTable() {
width: 150,
render: (record: Project.PersonProjectDashboardResponseItem) => {
return (
<UnstyledButton
<Text
px={6}
variant="transparent"
onClick={async () => {
setCurrentRowId(record.project_id)
router.push(`/project/info/detail?id=${record.project_id}`)
false && setCurrentRowId(record.project_id)
false &&
router.push(`/project/info/detail?id=${record.project_id}`)
}}
title={record.project_id.toString()}
c={"brand"}
// c={"brand"}
style={{
fontSize: "14px",
maxWidth: "100%",
@@ -93,7 +94,7 @@ export default function PersonalProjectTable() {
textOverflow: "ellipsis",
}}>
{record.project_id}
</UnstyledButton>
</Text>
)
},
},