fix(project): fix bug
This commit is contained in:
@@ -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}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@ export default function LabelSchemeContainer(props: {
|
||||
<DataTable<ProjectDetail.LabelSchemaList>
|
||||
withTableBorder
|
||||
withRowBorders
|
||||
idAccessor="category_id"
|
||||
records={schemas}
|
||||
columns={columns}
|
||||
minHeight={160}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user