|
|
@@ -26,15 +26,15 @@ module.exports = {
|
|
|
proxy: {
|
|
|
'/api': {
|
|
|
//本地服务接口地址
|
|
|
- // target: 'http://localhost:2888',
|
|
|
+ target: 'http://localhost:2888',
|
|
|
//远程演示服务地址,可用于直接启动项目
|
|
|
- target: 'https://saber.bladex.vip',
|
|
|
- // target: 'https://vote.guosen-fumao.cn',
|
|
|
+ //target: 'https://saber.bladex.vip/api',
|
|
|
+ //target: 'https://vote.guosen-fumao.cn/api',
|
|
|
|
|
|
ws: true,
|
|
|
- // pathRewrite: {
|
|
|
- // '^/api': '/'
|
|
|
- // }
|
|
|
+ pathRewrite: {
|
|
|
+ '^/api': '/'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|