Pre Merge pull request !108 from CoderHank/master
This commit is contained in:
commit
7cd873b98b
|
@ -556,6 +556,16 @@ export class RequestOption {
|
||||||
|
|
||||||
loadError = (err:BusinessError|string)=>{
|
loadError = (err:BusinessError|string)=>{
|
||||||
LogUtil.log("loadError:" + err);
|
LogUtil.log("loadError:" + err);
|
||||||
|
//失败回调
|
||||||
|
if(this.requestListeners != undefined) {
|
||||||
|
for (let i = 0;i < this.requestListeners.length; i++) {
|
||||||
|
let requestListener = this.requestListeners[i];
|
||||||
|
let boolInterception = requestListener.callback(err.toString(), new ImageKnifeData());
|
||||||
|
if (boolInterception) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// 失败占位图展示规则
|
// 失败占位图展示规则
|
||||||
if (this.retryholderFunc) {
|
if (this.retryholderFunc) {
|
||||||
// 重试图层优先于加载失败展示
|
// 重试图层优先于加载失败展示
|
||||||
|
|
Loading…
Reference in New Issue