mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
opt: LoadingState (#1776)
This commit is contained in:
committed by
GitHub
parent
3741fe54ff
commit
17883eb77e
@@ -31,12 +31,14 @@ class HistorySearchController
|
||||
'${business}_$kid',
|
||||
account: account,
|
||||
);
|
||||
if (res['status']) {
|
||||
if (res.isSuccess) {
|
||||
loadingState
|
||||
..value.data!.removeAt(index)
|
||||
..refresh();
|
||||
SmartDialog.showToast('已删除');
|
||||
} else {
|
||||
res.toast();
|
||||
}
|
||||
SmartDialog.showToast(res['msg']);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -54,11 +56,13 @@ class HistorySearchController
|
||||
.join(','),
|
||||
account: account,
|
||||
);
|
||||
if (response['status']) {
|
||||
if (response.isSuccess) {
|
||||
afterDelete(removeList);
|
||||
SmartDialog.showToast('已删除');
|
||||
} else {
|
||||
response.toast();
|
||||
}
|
||||
SmartDialog.dismiss();
|
||||
SmartDialog.showToast(response['msg']);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user