需求
如上图所示,有些接口是通过外部接口请求的,然后同一个页面如果其中的一个接口失败了。后面的接口也不会请求,导致正常的接口请求都没发起。如下图
解决方式
修改originalrequire.js里面的代码
import { showLoading, hideLoading } from './loading';
export function getPostReq(url, query, fun) {
// console.log(url)
showLoading();
let _self = this;
console.log(th