kimi
2020-03-18 b87f5bf860ac5390e03079aa2a362763646a0203
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = {
    // 修改的配置
    // 将baseUrl: '/api',改为baseUrl: '/',
    publicPath: '/',
     outputDir: 'dist',
    devServer: {
        proxy: {
            '/api/api': {
                //target: 'http://srs.highdatas.com:8090',
                target: 'http://localhost:9010',
                                
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                  '^/api/api': ''
                }
            }
        }
    }
}