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://0.0.0.0:8084', // changeOrigin: true, pathRewrite: { '^/api': '/' } } } }, })