fix: area error
parent
a274c46ada
commit
c83dc40ad3
|
@ -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 })
|
||||||
|
|
|
@ -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'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue