fix: area error

pull/3/head
xingyuv 2023-03-25 22:48:35 +08:00
parent a274c46ada
commit c83dc40ad3
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -16,7 +16,7 @@ export const columns: BasicColumn[] = [
export const formSchema: FormSchema[] = [
{
label: 'IP',
field: 'IP',
field: 'ip',
required: true,
component: 'Input'
},