update code

dev_xds
haha 2023-08-27 22:20:13 +08:00
parent 6aa8452c2d
commit 4e0dc26ff0
2 changed files with 22 additions and 9 deletions

View File

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

View File

@ -33,13 +33,26 @@ module.exports = {
port: port, port: port,
open: true, open: true,
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy '/jhapi/profile':{
[process.env.VUE_APP_BASE_API]: { target: `http://62.234.3.186/jhapi/profile/`,
target: `http://localhost:8090/jhapi`,
//target: `http://62.234.3.186/jhapi`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { 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':'/'
} }
} }
}, },