I configured the local mock data using json-server,. The function is also configured to see the data returned by the request in the browser console. The problem is that I don"t know why this data cannot be extracted.
the axios, used is simply encapsulated
commonApi.userGetMenu().then((res) => {
debugger
})
here res has always been undefined, but you do see the data obtained on the console, as shown in the following figure
what is this? Ask for the boss"s answer