diff --git a/src/api/infra/config/index.ts b/src/api/infra/config/index.ts index 6924c251..5d13628c 100644 --- a/src/api/infra/config/index.ts +++ b/src/api/infra/config/index.ts @@ -42,12 +42,12 @@ export const getConfigKeyApi = (configKey: string) => { } // 新增参数 -export const createConfigApi = (data: ConfigVO) => { +export const createConfig = (data: ConfigVO) => { return request.post({ url: '/infra/config/create', data }) } // 修改参数 -export const updateConfigApi = (data: ConfigVO) => { +export const updateConfig = (data: ConfigVO) => { return request.put({ url: '/infra/config/update', data }) } diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index fbafd3e8..7109615b 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -170,7 +170,6 @@ service.interceptors.response.use( return Promise.reject(new Error(msg)) } else if (code === 901) { ElMessage.error({ - duration: 5, offset: 300, dangerouslyUseHTMLString: true, message: diff --git a/src/views/infra/config/form.vue b/src/views/infra/config/form.vue index e4481dce..14a225a0 100644 --- a/src/views/infra/config/form.vue +++ b/src/views/infra/config/form.vue @@ -36,7 +36,6 @@