no message
This commit is contained in:
parent
28a03f1cde
commit
c75f0f191c
|
|
@ -122,6 +122,7 @@ class _TheLoginState extends ConsumerState<TheLogin> with CommonMixin {
|
||||||
void getSchoolData(String loginName) async {
|
void getSchoolData(String loginName) async {
|
||||||
var _client = await getClient();
|
var _client = await getClient();
|
||||||
if (loginName.length != 0) {
|
if (loginName.length != 0) {
|
||||||
|
try {
|
||||||
var res = await _client.toLoginGetSchools(loginName);
|
var res = await _client.toLoginGetSchools(loginName);
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
schools = res.data ?? [];
|
schools = res.data ?? [];
|
||||||
|
|
@ -134,6 +135,7 @@ class _TheLoginState extends ConsumerState<TheLogin> with CommonMixin {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
if (schools.isNotEmpty || schoolId != null) {
|
if (schools.isNotEmpty || schoolId != null) {
|
||||||
schools = [];
|
schools = [];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue