浏览器报错
Failed to load http://10.4.8.7......: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8009' is therefore not allowed access.
createError.js?f777:16 Uncaught (in promise) Error: Network Error
at createError (createError.js?f777:16)
at XMLHttpRequest.handleError (xhr.js?14ed:87)
在postman测试接口可以返回数据
跨域问题,服务端把CORS配置好,或者用node做代理层访问API