const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ transpileDependencies: true, lintOnSave: false, devServer: { proxy: { '/tts-test': { target: 'http://139.196.158.57:8080', //需要代理的域名,目标域名 changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/tts-test/, ''), //路径重写,把'/api'替换为'' }, '/bench': { target: 'http://139.196.158.57:8080', //需要代理的域名,目标域名 changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/bench/, ''), //路径重写,把'/api'替换为'' }, '/plan': { target: 'http://139.196.158.57:8080', //需要代理的域名,目标域名 changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/plan/, ''), //路径重写,把'/api'替换为'' }, '/mantis-test': { target: 'http://139.196.158.57:8080', //需要代理的域名,目标域名 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, //需要代理跨域 rewrite: (path) => path.replace(/^\/bmt-test/, ''), //路径重写,把'/api'替换为'' }, '/task': { target: 'http://106.14.237.165', //需要代理的域名,目标域名 changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/task/, ''), //路径重写,把'/api'替换为'' }, '/arbitrator': { target: 'http://139.196.158.57:8080', //需要代理的域名,目标域名 changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/arbitrator/, ''), //路径重写,把'/api'替换为'' }, '/8b934420_ZJUb_b6f9': { target: 'http://172.16.50.4:18080', changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/8b934420_ZJUb_b6f9/, ''), //路径重写,把'/api'替换为'' }, '/models': { target: 'http://172.16.50.4:18080', changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/models/, ''), //路径重写,把'/api'替换为'' } }, }, });