From c83dc40ad3937d4cc31921c60c57e7c7583f614e Mon Sep 17 00:00:00 2001 From: xingyuv Date: Sat, 25 Mar 2023 22:48:35 +0800 Subject: [PATCH] fix: area error --- src/views/system/area/AreaModal.vue | 3 ++- src/views/system/area/area.data.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/system/area/AreaModal.vue b/src/views/system/area/AreaModal.vue index a59b4d0d..46c685d1 100644 --- a/src/views/system/area/AreaModal.vue +++ b/src/views/system/area/AreaModal.vue @@ -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 }) diff --git a/src/views/system/area/area.data.ts b/src/views/system/area/area.data.ts index 5473570a..7e64ceac 100644 --- a/src/views/system/area/area.data.ts +++ b/src/views/system/area/area.data.ts @@ -16,7 +16,7 @@ export const columns: BasicColumn[] = [ export const formSchema: FormSchema[] = [ { label: 'IP', - field: 'IP', + field: 'ip', required: true, component: 'Input' },