diff --git a/lib/http/http_utils.dart b/lib/http/http_utils.dart index 7a3f9cd..cc3c424 100755 --- a/lib/http/http_utils.dart +++ b/lib/http/http_utils.dart @@ -237,7 +237,10 @@ class HttpUtils { ToastUtils.showToast(msg: '服务响应超时'); break; case DioExceptionType.unknown: - ToastUtils.showToast(msg: error.message); + ToastUtils.showToast( + msg: (error.message == '' || error.message?.isEmpty == true) + ? '请重新登录' + : error.message); break; case DioExceptionType.badResponse: try {