| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- devServer: {
- proxy: {
- '/tiaojie': {
- // target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
- target: 'http://172.16.1.26:6001',
- changeOrigin: true, // 是否改变Origin头信息
- secure : false,
- pathRewrite: {
- '^/tiaojie': '' // 将/api前缀重写为空字符串
- },
- },
- '/tiaojiez': {
- target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址
- // target: 'http://172.16.1.4:7001',
- changeOrigin: true, // 是否改变Origin头信息
- secure : false,
- pathRewrite: {
- '^/tiaojie': '' // 将/api前缀重写为空字符串
- },
- },
- '/zhongcai': {
- target: 'https://api.xayunmei.com/zhongcaiapitest', // 后端服务器地址
- changeOrigin: true, // 是否改变Origin头信息
- secure : false,
- pathRewrite: {
- '^/zhongcai': '' // 将/api前缀重写为空字符串
- },
- },
- '/zhongcaiz': {
- target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
- changeOrigin: true, // 是否改变Origin头信息
- secure : false,
- pathRewrite: {
- '^/zhongcai': '' // 将/api前缀重写为空字符串
- },
- }
- }
- }
- })
|