diff --git a/src/api/infra/config/index.ts b/src/api/infra/config/index.ts index 84ded9aa..6924c251 100644 --- a/src/api/infra/config/index.ts +++ b/src/api/infra/config/index.ts @@ -32,7 +32,7 @@ export const getConfigPage = (params: ConfigPageReqVO) => { } // 查询参数详情 -export const getConfigApi = (id: number) => { +export const getConfig = (id: number) => { return request.get({ url: '/infra/config/get?id=' + id }) } diff --git a/src/views/infra/config/form.vue b/src/views/infra/config/form.vue index ad924825..e4481dce 100644 --- a/src/views/infra/config/form.vue +++ b/src/views/infra/config/form.vue @@ -1,50 +1,53 @@ diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue index 3cde9385..e7f20a53 100644 --- a/src/views/infra/config/index.vue +++ b/src/views/infra/config/index.vue @@ -3,7 +3,7 @@ 新增 @@ -160,7 +160,7 @@ const queryParams = reactive({ type: undefined, createTime: [] }) -const queryForm = ref() // 搜索的表单 +const queryFormRef = ref() // 搜索的表单 /** 搜索按钮操作 */ const handleQuery = () => { @@ -182,7 +182,7 @@ const getList = async () => { /** 重置按钮操作 */ const resetQuery = () => { - queryForm.value.resetFields() + queryFormRef.value.resetFields() handleQuery() }