接口的错误拦截

对axios进行基础配置
1 | // main.js |
request拦截器(请求发送后端之前)
1 | instance.interceptors.request.use( |
response拦截器(数据返回后)
1 | instance.interceptors.response.use( |
评论
1 | // main.js |
1 | instance.interceptors.request.use( |
1 | instance.interceptors.response.use( |