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:
errno
App.vueaxios
errnodatajsongettersetterjsonname
this.seller = response.data
axios.get
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?