From 371f8d9cb62680e99b61a33ba9c1aca5b2161ed5 Mon Sep 17 00:00:00 2001 From: zhangheng Date: Mon, 16 Mar 2026 21:04:13 +0800 Subject: [PATCH] fix(image): fix bug --- app/project/detail/OwnTaskTableContainer.tsx | 4 +--- app/project/detail/TaskTableContainer.tsx | 3 --- components/label/hooks/useAuth.ts | 2 +- components/project/index.tsx | 8 ++++---- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/project/detail/OwnTaskTableContainer.tsx b/app/project/detail/OwnTaskTableContainer.tsx index 79b7ce1..39d4269 100644 --- a/app/project/detail/OwnTaskTableContainer.tsx +++ b/app/project/detail/OwnTaskTableContainer.tsx @@ -60,8 +60,6 @@ export default function OwnTaskTableContainer(props: { const router = useRouter() const { setBackProps } = useBackUrlStore() const user_id = usePermissionStore((s) => s.user_id) - const user_name = usePermissionStore((s) => s.user_name) - const user_password = usePermissionStore((s) => s.user_password) const [total, setTotal] = useState(0) @@ -265,7 +263,7 @@ export default function OwnTaskTableContainer(props: { }, ] return cols - }, [info, projectId, router, setBackProps, type, user_name, user_password]) + }, [info, projectId, router, setBackProps, type]) return ( diff --git a/app/project/detail/TaskTableContainer.tsx b/app/project/detail/TaskTableContainer.tsx index 17b24e3..15e3f6e 100644 --- a/app/project/detail/TaskTableContainer.tsx +++ b/app/project/detail/TaskTableContainer.tsx @@ -133,9 +133,6 @@ export default function TaskTableContainer(props: { const projectId = typeof id === "string" && !isNaN(Number(id)) ? Number(id) : -1 - const user_name = usePermissionStore((s) => s.user_name) - const user_password = usePermissionStore((s) => s.user_password) - const router = useRouter() const { setBackProps } = useBackUrlStore() diff --git a/components/label/hooks/useAuth.ts b/components/label/hooks/useAuth.ts index 4144701..4114743 100644 --- a/components/label/hooks/useAuth.ts +++ b/components/label/hooks/useAuth.ts @@ -12,7 +12,7 @@ type PermissionMap = { } const mappingList: { [x: string]: [string, string] } = { - "/setting/project/all": ["project", "config"], + "/project/own": ["project", "config"], "/management/team/employee": ["user", "view"], "/management/team/organization": ["user", "group_view"], "/management/team/dailypaper": ["daily_work", "team_view"], diff --git a/components/project/index.tsx b/components/project/index.tsx index 84152d0..e5b652d 100644 --- a/components/project/index.tsx +++ b/components/project/index.tsx @@ -474,8 +474,8 @@ export default function ProjectInfoPage({
- - {isShow("edit") && ( + {isShow("edit") && ( + - )} - + + )}