feat: 新增模块
This commit is contained in:
parent
70aed0e6d1
commit
33e8cdb825
|
@ -0,0 +1,9 @@
|
|||
import request from '@/utils/requestDevops'
|
||||
|
||||
export function queryPage(data) {
|
||||
return request({
|
||||
url: 'kenaito-config/app/queryPage',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue