fix(image): fix bug

This commit is contained in:
zhangheng
2026-03-16 21:04:13 +08:00
parent 9c72686436
commit 371f8d9cb6
4 changed files with 6 additions and 11 deletions

View File

@@ -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 (
<Stack gap="sm" style={{ flex: 1, minHeight: 0 }}>

View File

@@ -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()

View File

@@ -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"],

View File

@@ -474,8 +474,8 @@ export default function ProjectInfoPage({
<div style={{ display: "flex", gap: 6, height: 32 }}>
<div style={{ flex: 1, display: "flex", justifyContent: "center" }}>
<Tooltip label="编辑">
{isShow("edit") && (
{isShow("edit") && (
<Tooltip label="编辑">
<ActionIcon
variant="transparent"
radius="md"
@@ -496,8 +496,8 @@ export default function ProjectInfoPage({
color="var(--mantine-color-brand-text)"
/>
</ActionIcon>
)}
</Tooltip>
</Tooltip>
)}
</div>
<div