module.exports = { // 修改的配置 // 将baseUrl: '/api',改为baseUrl: '/', publicPath: '/', outputDir: 'dist', devServer: { proxy: { '/api/api': { target: 'http://highdatas.com:8090', changeOrigin: true, ws: true, pathRewrite: { '^/api/api': '' } } } } }