This commit is contained in:
cxc
2023-02-09 17:07:14 +08:00
parent 1b88c226ad
commit 2aa59649a8
16 changed files with 156 additions and 41 deletions

View File

@ -89,12 +89,9 @@ class _LoginFormState extends ConsumerState<LoginForm> {
print(resp.statusCode);
}
} catch (e) {
// print(e is DioError);
// DioError err = e;
if (e is DioError) {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(e.response?.data["msg"] ?? "请求错误")));
// print(e.response?.data["msg"] ?? "请求错误");
}
}
}),