mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
opt: LoadingState (#1776)
This commit is contained in:
committed by
GitHub
parent
3741fe54ff
commit
17883eb77e
@@ -214,10 +214,9 @@ class SSearchController extends GetxController
|
||||
@override
|
||||
Future<void> onValueChanged(String value) async {
|
||||
var res = await SearchHttp.searchSuggest(term: value);
|
||||
if (res['status']) {
|
||||
SearchSuggestModel data = res['data'];
|
||||
if (data.tag?.isNotEmpty == true) {
|
||||
searchSuggestList.value = data.tag!;
|
||||
if (res case Success(:final response)) {
|
||||
if (response.tag?.isNotEmpty == true) {
|
||||
searchSuggestList.value = response.tag!;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user