vue-resource icon indicating copy to clipboard operation
vue-resource copied to clipboard

data not view on browser

Open engsamar opened this issue 7 years ago • 1 comments

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 screenshot from 2017-08-11 03-44-57

i hope can u help me

engsamar avatar Aug 11 '17 01:08 engsamar

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 => {})

samsong8610 avatar Sep 25 '17 05:09 samsong8610