Fix edit mode PUT payload (status field) and add error handling to fetchUsers
This commit is contained in:
@@ -87,7 +87,7 @@ async function handleSubmit() {
|
||||
await api.put(`/api/v1/users/${props.userData!.id}`, {
|
||||
username: formState.username,
|
||||
email: formState.email,
|
||||
ext: props.userData!.ext,
|
||||
status: formState.status,
|
||||
})
|
||||
}
|
||||
message.success('操作成功')
|
||||
|
||||
Reference in New Issue
Block a user