feat: 新增模块

This commit is contained in:
骑着蜗牛追导弹 2024-12-06 21:13:48 +08:00
parent 70aed0e6d1
commit 33e8cdb825
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,9 @@
import request from '@/utils/requestDevops'
export function queryPage(data) {
return request({
url: 'kenaito-config/app/queryPage',
method: 'post',
data: data
})
}

View File

@ -2,7 +2,7 @@ import request from '@/utils/requestDevops'
export function queryPage(data) { export function queryPage(data) {
return request({ return request({
url: 'kenaito-config/configFile/queryPage', url: 'kenaito-config/file/queryPage',
method: 'post', method: 'post',
data: data data: data
}) })

View File

@ -42,12 +42,12 @@ module.exports = {
} }
}, },
// 参照 src/api/config/productLine.js // 参照 src/api/config/productLine.js
// 当请求地址以/kenaito-config/开头时,转变为 target + '/api/configFile' + 除'/kenaito-config'以外的路径 // 当请求地址以/kenaito-config/开头时,转变为 target + '/api/config' + 除'/kenaito-config'以外的路径
'/kenaito-config/': { '/kenaito-config/': {
target: process.env.VUE_APP_DEVOPS_BASE_API, target: process.env.VUE_APP_DEVOPS_BASE_API,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/kenaito-config': '/api/configFile' '^/kenaito-config': '/api/config'
} }
} }
} }