提交 b051be65 编写于 作者: H heyh

修改配置

上级 5025965b
......@@ -11,7 +11,7 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/apis': { //这里是公共部分,在调用接口时后面接不相同的部分,/api就相当于http://192.168.0.199:8926/api这一段
target: 'http://192.168.1.181:5840/api', //这里写的是访问接口的域名和端口号
target: 'http://192.168.1.182:5840/api', //这里写的是访问接口的域名和端口号
changeOrigin: true, // 必须加上这个才能跨域请求
pathRewrite: { // 重命名
'^/apis': ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册