vue-resource
vue-resource copied to clipboard
data not view on browser
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 browser and not view data in another browser but not the same version
the error appear on console such as screenshot
i hope can u help me
The response
does have a data
property, see http response model for more details.
Usually, you can get the raw response body by response.body
or get the resolved formatted body by response.json().then(json => {})