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' } } }