Axios Mocker Demo with Chrome extension
See demo with local data
Response Data:
Add code after axios referenceļ¼
if (window.AxiosMockerExt) { new AxiosMockerExt(axios); }
Install the buit-in Chrome extension AxiosMocker.
Open the Chrome dev tool panel (Ctrl+Shift+I), click the AxiosMocker tab.
Click button New, type '/api/getUser' in the request url input box, then press Ctrl+S to save.
Refresh the page.