feat: 配置管理初始化

This commit is contained in:
骑着蜗牛追导弹 2024-12-05 19:34:00 +08:00
parent f4a30a4080
commit 70aed0e6d1
5 changed files with 65 additions and 2 deletions

View File

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

View File

@ -0,0 +1,27 @@
<template>
<div class="app-container">
<el-row :gutter="20">
<el-col :span="18" />
<el-col :span="6" />
</el-row>
</div>
</template>
<script>
export default {
name: 'ConfigApp',
data() {
return {
}
},
mounted() {
this.initData()
},
methods: {
initData() {
}
}
}
</script>

View File

@ -0,0 +1,27 @@
<template>
<div class="app-container">
<el-row :gutter="20">
<el-col :span="18" />
<el-col :span="6" />
</el-row>
</div>
</template>
<script>
export default {
name: 'ConfigFile',
data() {
return {
}
},
mounted() {
this.initData()
},
methods: {
initData() {
}
}
}
</script>

View File

@ -42,12 +42,12 @@ module.exports = {
} }
}, },
// 参照 src/api/config/productLine.js // 参照 src/api/config/productLine.js
// 当请求地址以/kenaito-config/开头时,转变为 target + '/api/config' + 除'/kenaito-config'以外的路径 // 当请求地址以/kenaito-config/开头时,转变为 target + '/api/configFile' + 除'/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/config' '^/kenaito-config': '/api/configFile'
} }
} }
} }