no message

This commit is contained in:
1147192855@qq.com 2024-06-13 17:08:14 +08:00
parent 28a03f1cde
commit c75f0f191c
1 changed files with 14 additions and 12 deletions

View File

@ -122,6 +122,7 @@ class _TheLoginState extends ConsumerState<TheLogin> with CommonMixin {
void getSchoolData(String loginName) async {
var _client = await getClient();
if (loginName.length != 0) {
try {
var res = await _client.toLoginGetSchools(loginName);
if (res.success) {
schools = res.data ?? [];
@ -134,6 +135,7 @@ class _TheLoginState extends ConsumerState<TheLogin> with CommonMixin {
setState(() {});
return;
}
} catch (e) {}
}
if (schools.isNotEmpty || schoolId != null) {
schools = [];