zhangyanpeng
2020-02-11 ee7a140cf101c0e863d699dbe2da10767914f95b
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://highdatas.com:8090',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                  '^/api/api': ''
                }
            }
        }
    }
}