About the interface when axios introduces the local json file.

A vue actual combat project imitating ele.me on Mu course net, which has set up route, uses json file mock data locally, json file is placed in static folder, and wants to be extracted with axios. Just look at the seller section of json. The json content is as follows:
json

errno

App.vueaxios

errnodatajsongettersetterjsonname

this.seller = response.data

axios.get

The

data is indeed complete, but the full json content is passed in instead of just the seller part, and the errno is gone.
feels that the problem may lie in the sentence this.seller = response.data, but the program does not report an error. I would like to ask what is the principle of this, and how to solve it while retaining errno?

Mar.01,2021

vue proxies your data, so what you see is like that, the data is still the original data, it makes no difference. Now it has become responsive data

Menu