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 { try {
const values = await validate() const values = await validate()
setModalProps({ confirmLoading: true }) setModalProps({ confirmLoading: true })
const res = getAreaByIp(values.ip) console.info(values)
const res = await getAreaByIp(values.ip)
if (res) { if (res) {
values.result = res values.result = res
setFieldsValue({ ...values }) setFieldsValue({ ...values })

View File

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