diff --git a/lib/common/request/rest_dio.dart b/lib/common/request/rest_dio.dart index 5c816e3..4216de1 100644 --- a/lib/common/request/rest_dio.dart +++ b/lib/common/request/rest_dio.dart @@ -152,8 +152,7 @@ class TheError extends Interceptor { var errorMap = response.data; // var runtimeType = errorMap.runtimeType; - // print(runtimeType); - if ((errorMap is Map || errorMap is Object) && errorMap['error'] != null) { + if (errorMap is Map && errorMap['error'] != null) { message = errorMap['error']?['message'] ?? '请求错误,请重试'; } else { if (statusCode != null) { diff --git a/lib/page/login_page/login_logic.dart b/lib/page/login_page/login_logic.dart index 77f0264..f40cab3 100644 --- a/lib/page/login_page/login_logic.dart +++ b/lib/page/login_page/login_logic.dart @@ -104,6 +104,7 @@ class LoginLogic extends GetxController with RequestToolMixin { // FastData.getInstance().cleanShared(); // return toMsg(msg ?? '登录失败,请重试'); } finally { + state.canLogin.value = true; // EasyLoading.dismiss(); } }