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