Update http.dart

This commit is contained in:
NewTab
2022-01-20 21:32:09 +08:00
parent 9b51b5c26c
commit d7aa3b7348

View File

@@ -126,7 +126,7 @@ class Http {
}
static HttpResponse<T> exceptionHandler<T>(DioError e) {
if (e.response?.statusCode == 401) {
if (e.response?.data!= null && e.response?.data['code'] == 401) {
if (!getIt<UserInfoViewModel>().useSecretLogined) {
exitLogin();
}