想要获取json-server的服务接口
D:\workspace\xxx\config\index.js
???proxyTable: { ?????‘/api/‘: ‘http://localhost:3000‘ ???},
这部分忽略掉。。
jsonApiServer.use(‘api‘, jsonApiRouter)
使用代理,调用json-server的服务接口
原文地址:https://www.cnblogs.com/tabCtrlShift/p/9170421.html
想要获取json-server的服务接口
D:\workspace\xxx\config\index.js
???proxyTable: { ?????‘/api/‘: ‘http://localhost:3000‘ ???},
这部分忽略掉。。
使用代理,调用json-server的服务接口
原文地址:https://www.cnblogs.com/tabCtrlShift/p/9170421.html