|
@@ -239,7 +239,7 @@ class DioUtil { |
|
@@ -239,7 +239,7 @@ class DioUtil { |
|
239
|
|
239
|
|
|
240
|
return new BaseResp(_status, _code, _msg, _data, _responseData);
|
240
|
return new BaseResp(_status, _code, _msg, _data, _responseData);
|
|
241
|
} catch (e) {
|
241
|
} catch (e) {
|
|
242
|
- Loading.hideLoading(context);
|
242
|
+ // Loading is dismissed once by the outer DioException handler below.
|
|
243
|
throw new DioException(
|
243
|
throw new DioException(
|
|
244
|
requestOptions: response.requestOptions,
|
244
|
requestOptions: response.requestOptions,
|
|
245
|
response: response,
|
245
|
response: response,
|
|
@@ -248,7 +248,7 @@ class DioUtil { |
|
@@ -248,7 +248,7 @@ class DioUtil { |
|
248
|
);
|
248
|
);
|
|
249
|
}
|
249
|
}
|
|
250
|
}
|
250
|
}
|
|
251
|
- Loading.hideLoading(context);
|
251
|
+ // Loading is dismissed once by the outer DioException handler below.
|
|
252
|
throw new DioException(
|
252
|
throw new DioException(
|
|
253
|
requestOptions: response.requestOptions,
|
253
|
requestOptions: response.requestOptions,
|
|
254
|
response: response,
|
254
|
response: response,
|