Browse Source

safety

master
fmk 3 years ago
parent
commit
a8ef068fb4
  1. 4
      lib/retrofit/retrofit_api.dart

4
lib/retrofit/retrofit_api.dart

@ -68,7 +68,6 @@ abstract class ApiService {
debugPrint("headers = ${options.headers}");
if (showLoading && !EasyLoading.isShow) {
//loading
// SmartDialog.showLoading(msg: S.current.zhengzaijiazai);
EasyLoading.show(status: S.of(context).zhengzaijiazai);
}
if (options.data is FormData) {
@ -79,8 +78,6 @@ abstract class ApiService {
debugPrint("params queryParameters = ${options.queryParameters}");
}, onResponse: (Response response) {
if (showLoading && EasyLoading.isShow) {
// SmartDialog.dismiss();
EasyLoading.dismiss();
}
debugPrint("\n====================== 响应数据开始 =====================");
@ -111,7 +108,6 @@ abstract class ApiService {
}
debugPrint("======================= 响应数据结束 =======================\n");
}, onError: (DioError e) {
// SmartDialog.dismiss();
if (EasyLoading.isShow) {
EasyLoading.dismiss();
}

Loading…
Cancel
Save