fix: area error
parent
a274c46ada
commit
c83dc40ad3
|
@ -26,7 +26,8 @@ async function handleSubmit() {
|
|||
try {
|
||||
const values = await validate()
|
||||
setModalProps({ confirmLoading: true })
|
||||
const res = getAreaByIp(values.ip)
|
||||
console.info(values)
|
||||
const res = await getAreaByIp(values.ip)
|
||||
if (res) {
|
||||
values.result = res
|
||||
setFieldsValue({ ...values })
|
||||
|
|
|
@ -16,7 +16,7 @@ export const columns: BasicColumn[] = [
|
|||
export const formSchema: FormSchema[] = [
|
||||
{
|
||||
label: 'IP',
|
||||
field: 'IP',
|
||||
field: 'ip',
|
||||
required: true,
|
||||
component: 'Input'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue