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