1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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', // 后台接口
- // target: 'http://10.244.107.145:8081/cmnw_server_dev/api', // 后台接口
- changeOrigin: true, //是否跨域
- pathRewrite: {
- '^/api2': ''
- }
- },
- '/prodntoken': {
- // target: 'http://10.108.3.5:8080/cmnw_server_dev/api', // 后台接口
- target: 'http://10.244.107.145:8081/cmnw_trans', // 后台接口
- changeOrigin: true, //是否跨域
- pathRewrite: {
- '^/prodntoken': ''
- }
- },
- '/jsonFile': {
- // target: 'http://10.108.3.5:8080/cmnw_server_dev/api', // 后台接口
- target: 'http://10.244.107.145:8081', // 后台接口
- changeOrigin: true, //是否跨域
- pathRewrite: {
- '^/jsonFile': ''
- }
- },
- }
- }
- })
|