Why is the service requesting json-server deployment unable to fetch data?

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

Mar.06,2021

feels like there's something wrong with your axios package. Use axios to try

first.
Menu