feat(http):修改请求结果

This commit is contained in:
2026-05-07 13:59:16 +08:00
parent 89dbb79256
commit 7f077cf513
+4 -1
View File
@@ -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 {