From dcc796696acd3658ab4a2f44a28342a32316ada9 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 9 Mar 2023 00:06:53 +0800 Subject: [PATCH] =?UTF-8?q?vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=AE=A1=E7=90=86=EF=BC=8C=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/config/index.ts | 4 +-- src/config/axios/service.ts | 1 - src/views/infra/config/form.vue | 44 +++++++++++++++++---------------- 3 files changed, 25 insertions(+), 24 deletions(-) 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 @@