增加错误提示

This commit is contained in:
jyuesong
2022-01-24 10:44:23 +08:00
parent 0e78441fa1
commit 3fd167e889
8 changed files with 38 additions and 32 deletions

View File

@@ -127,6 +127,7 @@ class Http {
}
static HttpResponse<T> exceptionHandler<T>(DioError e, String path) {
logger.e(e);
if (e.response?.statusCode == 401 && !Url.inWhiteList(path)) {
if (!getIt<UserInfoViewModel>().useSecretLogined) {
exitLogin();