12345678910111213141516171819202122 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- publicPath: './',
- // 代理服务,处理接口跨域请求
- devServer: {
- port: '8080',
- proxy: {
- '/api': {
- target: 'http://124.70.137.152:8095', // http://124.70.137.152:8095
- // target: 'http://localhost:8084', //
- changeOrigin: true,
- pathRewrite: {
- '^/api': '/'
- }
- }
- }
- },
- })
|