|
|
|
@ -135,7 +135,7 @@ var MyRetryStrategy = /** @class */ (function () {
|
|
|
|
|
if (baseInterval === void 0) { baseInterval = 500; } |
|
|
|
|
return function (url, request, retryIndex) { |
|
|
|
|
|
|
|
|
|
if (request.status == 0 || retryIndex >= maxRetries || url.indexOf("file:") !== -1) { |
|
|
|
|
if (retryIndex >= maxRetries || url.indexOf("file:") !== -1) { |
|
|
|
|
console.log("不重试加载", request.status, retryIndex, url.indexOf("file:")); |
|
|
|
|
return -1; |
|
|
|
|
} |
|
|
|
|