From 33e8cdb8257befabe4d50fc84fa4236f27090675 Mon Sep 17 00:00:00 2001 From: odboy Date: Fri, 6 Dec 2024 21:13:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config/configApp.js | 9 +++++++++ src/api/config/configFile.js | 2 +- vue.config.js | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 src/api/config/configApp.js diff --git a/src/api/config/configApp.js b/src/api/config/configApp.js new file mode 100644 index 0000000..856fce7 --- /dev/null +++ b/src/api/config/configApp.js @@ -0,0 +1,9 @@ +import request from '@/utils/requestDevops' + +export function queryPage(data) { + return request({ + url: 'kenaito-config/app/queryPage', + method: 'post', + data: data + }) +} diff --git a/src/api/config/configFile.js b/src/api/config/configFile.js index 32c4f8e..4313cb0 100644 --- a/src/api/config/configFile.js +++ b/src/api/config/configFile.js @@ -2,7 +2,7 @@ import request from '@/utils/requestDevops' export function queryPage(data) { return request({ - url: 'kenaito-config/configFile/queryPage', + url: 'kenaito-config/file/queryPage', method: 'post', data: data }) diff --git a/vue.config.js b/vue.config.js index 6753c01..6fe972a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -42,12 +42,12 @@ module.exports = { } }, // 参照 src/api/config/productLine.js - // 当请求地址以/kenaito-config/开头时,转变为 target + '/api/configFile' + 除'/kenaito-config'以外的路径 + // 当请求地址以/kenaito-config/开头时,转变为 target + '/api/config' + 除'/kenaito-config'以外的路径 '/kenaito-config/': { target: process.env.VUE_APP_DEVOPS_BASE_API, changeOrigin: true, pathRewrite: { - '^/kenaito-config': '/api/configFile' + '^/kenaito-config': '/api/config' } } }