【修改】和后台的访问处理

This commit is contained in:
zer0Black
2022-04-10 17:33:43 +08:00
parent f43631675f
commit e0af250323
3 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -87,9 +87,12 @@ module.exports = {
}
},*/
'/jero-boot': {
target: 'http://localhost:8080', //请求本地 jero-boot后台项目
target: 'http://localhost:9999', //请求本地 jero-boot后台项目
ws: false,
changeOrigin: true
changeOrigin: true,
pathRewrite: {
'/jero-boot': '' //默认所有请求都加了jero-boot前缀,需要去掉
}
},
}
},