소스 검색

添加execution代理

57862207 1 년 전
부모
커밋
3b696f5ddc
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      vue.config.js

+ 5 - 0
vue.config.js

@@ -24,6 +24,11 @@ module.exports = defineConfig({
         changeOrigin: true, //需要代理跨域
         rewrite: (path) => path.replace(/^\/mantis-test/, ''), //路径重写,把'/api'替换为''
       },
+      '/execution': {
+        target: 'http://139.196.158.57:8080', //需要代理的域名,目标域名
+        changeOrigin: true, //需要代理跨域
+        rewrite: (path) => path.replace(/^\/execution/, ''), //路径重写,把'/api'替换为''
+      },
       '/bmt-test': {
         target: 'http://139.196.158.57:8080', //需要代理的域名,目标域名
         changeOrigin: true, //需要代理跨域