🎉 反代接口默认为服务器接口地址,方便不熟悉后端的小伙伴学习

This commit is contained in:
smallchill 2019-07-01 22:50:34 +08:00
parent 0e5378fb1e
commit 084479328b
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ module.exports = {
// 反向代理配置
proxy: {
'/api': {
target: 'http://localhost',
//target: 'http://localhost',
target: 'https://saber.bladex.vip/api',
ws: true,
pathRewrite: {
'^/api': '/'