dev_xds
姜玉琦 2023-08-27 22:25:19 +08:00
commit 577d3b57ec
2 changed files with 22 additions and 9 deletions

View File

@ -54,11 +54,11 @@
<script>
import { listByProject } from "@/api/project/build_node_data.js";
import { getToken } from "@/utils/auth";
import NodeItem from "./nodeItem.vue";
export default {
name: "RuoyiUiBuildNodeDrawer",
components: {
NodeItem,
},
data() {
return {

View File

@ -32,16 +32,29 @@ module.exports = {
host: '0.0.0.0',
port: port,
open: true,
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8090/jhapi`,
//target: `http://62.234.3.186/jhapi`,
proxy: {
'/jhapi/profile':{
target: `http://62.234.3.186/jhapi/profile/`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
'^/jhapi/profile':'/'
}
}
},
'/jhapi':{
target: `http://62.234.3.186/jhapi/`,
//target: `http://127.0.0.1:8090/jhapi/`,
changeOrigin: true,
pathRewrite: {
'^/jhapi':'/'
}
},
'/profile':{
target: `http://62.234.3.186/profile/`,
changeOrigin: true,
pathRewrite: {
'^/profile':'/'
}
}
},
disableHostCheck: true
},