In vue, if axios interception is used, is it not possible to use mock.js to simulate data? (returned as undefined)

I introduced the mock.js file (the content is the data I returned), then adjusted the interface in the page, went mock.js but returned undefined.
clipboard.png

clipboard.png

Mar.06,2021

the reason is simple: you need to put the data return out

in your interceptor.
  https://codeshelper.com/q/10.

Menu