vue-resource
vue-resource copied to clipboard
The HTTP client for Vue.js
i used vuejs to get data using `this.$http.get('url', {params: {page: page}}).then( function (response) { this.$set('items', response.data.data.data); this.$set('pagination', response.data.pagination); }, function (error) { // handle error });` it return data on...
example: ``` import Vue from 'vue' let loginMiddleware = function (request,next) { next(function (response) { if(response.status == 403){ Vue.router.push('/home') } }) } ``` I got - TypeError: Cannot read property...
### Reproduction Link await Post('my method name', JSON.stringify(my param)) .then(response => { console.log('response: ', response) if (Helper.IsValid(response, true)) { // code need to fire } }, response => { console.log('error...
Hi there! when I call the method "getUserData" I unfortunately get a 401 (Unauthorized)" error. But if call the URL "http://ppstemp.com/api/User/Profile" with GET and the same headers in Postman, it...
it's work well when $.http.get https url on IOS, but error on android any diff ? or, how vue-resout to support https

I receive a valid response from success callback, but from the error callback I don't receive any valid response that I can handle. I am using it on latest Chromium...
``` this.$http.delete(this.deleteProductUrl, { ids: goodsId }, { "Content-Type": "application/x-www-form-urlencoded" }, { emulateJSON: true }).then((response) => { alert(response.data.reason) }) ``` 但是在控制台查看头部信息:  怎样使用参数请选择 body(主体) x-www-form-urlencoded 进行传递参数?
When I use credentials to send a payload request that carry the cookie, it can't send the request with cookie and HTTP body. ``` Vue.http.post(url, params, {credentials : true} );...
When I use jsonp request, if api response result as below ``` callback('{"timestamp": 1499421237, "nonceStr": "kAi5na4ckNG3uv3xg9MVdP"}'); ``` We must use `JSON.parse` twice, so I think it's necessary to add a...