fix(detail): change detail
This commit is contained in:
@@ -151,8 +151,8 @@ export default function OwnTaskTableContainer(props: {
|
||||
style={{ paddingLeft: 6, paddingRight: 6 }}
|
||||
onClick={async () => {
|
||||
const backUrl = type
|
||||
? `/management/person/collection/detail?id=${projectId}&type=${type}`
|
||||
: `/management/person/collection/detail?id=${projectId}`
|
||||
? `/management/project/detail?id=${projectId}&type=${type}`
|
||||
: `/management/project/detail?id=${projectId}`
|
||||
setBackProps(backUrl, "own")
|
||||
|
||||
if (info && [4, 5, 6].includes(info.label_type)) {
|
||||
@@ -1,5 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import { dispatchOpts } from "@/app/management/person/collection/config"
|
||||
import { taskDispatch } from "@/components/label/api/task"
|
||||
import { Task } from "@/components/label/api/task/typing"
|
||||
import { usePermissionStore } from "@/components/label/store/auth"
|
||||
@@ -14,7 +15,6 @@ import {
|
||||
} from "@mantine/core"
|
||||
import { useForm } from "@mantine/form"
|
||||
import { notifications } from "@mantine/notifications"
|
||||
import { dispatchOpts } from "../../config"
|
||||
|
||||
export default function DispatchModal(props: {
|
||||
opened: boolean
|
||||
@@ -116,8 +116,8 @@ export default function CollectionDetailPage() {
|
||||
: "全部项目"
|
||||
: "我的收藏",
|
||||
href: type
|
||||
? `/management/person/collection?type=${type}`
|
||||
: "/management/person/collection?type=collect",
|
||||
? `/management/project?type=${type}`
|
||||
: "/management/project?type=collect",
|
||||
},
|
||||
{
|
||||
title: info?.name || "项目名称",
|
||||
@@ -168,8 +168,8 @@ export default function CollectionDetailPage() {
|
||||
const next = item.key
|
||||
setSelectedKey(next)
|
||||
const backUrl = type
|
||||
? `/management/person/collection/detail?id=${projectId}&type=${type}`
|
||||
: `/management/person/collection/detail?id=${projectId}`
|
||||
? `/management/project/detail?id=${projectId}&type=${type}`
|
||||
: `/management/project/detail?id=${projectId}`
|
||||
setBackProps(backUrl, next)
|
||||
}}
|
||||
style={{
|
||||
@@ -212,8 +212,8 @@ export default function CollectionDetailPage() {
|
||||
onClick={() => {
|
||||
router.push(
|
||||
type
|
||||
? `/management/person/collection?type=${type}`
|
||||
: "/management/person/collection?type=collect"
|
||||
? `/management/project?type=${type}`
|
||||
: "/management/project?type=collect"
|
||||
)
|
||||
}}>
|
||||
返回
|
||||
Reference in New Issue
Block a user