fix(project): fix bug

This commit is contained in:
zhangheng
2026-02-24 15:34:05 +08:00
parent 8389a9bfcd
commit 52b1a627e1
12 changed files with 49 additions and 203 deletions

View File

@@ -7,7 +7,6 @@ import { Button } from "@mantine/core"
export default function ComponentLabelLoginPage() {
const { setUserInfo, setUserPassword } = usePermissionStore()
const user_id = usePermissionStore.getState().user_id
const token = usePermissionStore.getState().token
// 用户登录
const handleUserLoginBtnClick = async () => {
@@ -33,7 +32,6 @@ export default function ComponentLabelLoginPage() {
<>
<Button onClick={handleUserLoginBtnClick}>Login</Button>
user_id:{user_id}
token:{token}
</>
)
}

View File

@@ -82,6 +82,7 @@ export default function LabelSchemeContainer(props: {
<DataTable<ProjectDetail.LabelSchemaList>
withTableBorder
withRowBorders
idAccessor="category_id"
records={schemas}
columns={columns}
minHeight={160}

View File

@@ -53,7 +53,8 @@ export default function SamplingPlanContainer(props: {
C_frame: toPercent(grade.C?.frame),
})
form.resetDirty()
}, [info, form])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [info])
const save = async () => {
try {