按照这样的封装,请求拦截器里拿不到实际调用时传递的config信息
this.$api.survey.getSurveyList({ ...newParams }, false, { isLoading: true });
instance.interceptors.request.use(config => {// config.isLoading 为undefined },error => {});
this.$api.survey.getSurveyList({ ...newParams }, false, { isLoading: true });
instance.interceptors.request.use(config => {// config.isLoading 为undefined },error => {});
2019-08-16
举报