kimi
2020-01-23 d6448c16b19f4764b14a6d2c0df0495e928dc3d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = {
    // 修改的配置
    // 将baseUrl: '/api',改为baseUrl: '/',
    publicPath: '/',
    devServer: {
        proxy: {
            '/api/api': {
                target: 'http://127.0.0.1:8090',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                  '^/api/api': ''
                }
            }
        }
    }
}