12345678910111213141516171819 |
- module.exports = {
- publicPath: './',
- devServer: {
- // proxy: {
- // '/api': {
- // // 此处的写法,目的是为了 将 /api 替换成 https://www.baidu.com/
- // target: 'http://47.112.166.173:8088/',
- // // 允许跨域
- // changeOrigin: true,
- // ws:true,
- // pathRewrite: {
- // '^/api': ''
- // }
- // }
- // }
- proxy: "http://47.112.166.173:8088/"
- }
- }
|