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': ''
| }
| }
| }
| }
| }
|
|