123456789101112131415161718192021222324252627 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- publicPath: './',
- outputDir: 'cmnw_new',
- devServer:{
- proxy: {
- '/apitoken': {
- // target: 'http://10.108.3.5:8080/cmnw_server_dev', // 后台接口
- target: 'http://101.132.114.72:8080/cmnw_trans', // 后台接口
- changeOrigin: true, //是否跨域
- pathRewrite: {
- '^/apitoken': ''
- }
- },
- '/api2': {
- target: 'http://10.108.3.5:8080/cmnw_server_dev/api', // 后台接口
- changeOrigin: true, //是否跨域
- pathRewrite: {
- '^/api2': ''
- }
- },
- }
- }
- })
|