处理登录页面

This commit is contained in:
1147192855@qq.com 2024-04-03 11:04:53 +08:00
parent 47bf61bf34
commit c4502ae140
2 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,7 @@ class TheError extends Interceptor {
var errorMap = response.data; var errorMap = response.data;
// var runtimeType = errorMap.runtimeType; // var runtimeType = errorMap.runtimeType;
// print(runtimeType); if (errorMap is Map && errorMap['error'] != null) {
if ((errorMap is Map || errorMap is Object) && errorMap['error'] != null) {
message = errorMap['error']?['message'] ?? '请求错误,请重试'; message = errorMap['error']?['message'] ?? '请求错误,请重试';
} else { } else {
if (statusCode != null) { if (statusCode != null) {

View File

@ -104,6 +104,7 @@ class LoginLogic extends GetxController with RequestToolMixin {
// FastData.getInstance().cleanShared(); // FastData.getInstance().cleanShared();
// return toMsg(msg ?? '登录失败,请重试'); // return toMsg(msg ?? '登录失败,请重试');
} finally { } finally {
state.canLogin.value = true;
// EasyLoading.dismiss(); // EasyLoading.dismiss();
} }
} }