处理登录页面
This commit is contained in:
parent
47bf61bf34
commit
c4502ae140
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue