Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -106,18 +106,18 @@ class HistoryController
Future<void> _onDelete(Set<HistoryItemModel> removeList) async {
SmartDialog.showLoading(msg: '请求中');
final response = await UserHttp.delHistory(
final res = await UserHttp.delHistory(
removeList
.map((item) => '${item.history.business}_${item.kid}')
.join(','),
account: account,
);
SmartDialog.dismiss();
if (response.isSuccess) {
if (res.isSuccess) {
afterDelete(removeList);
SmartDialog.showToast('已删除');
} else {
response.toast();
res.toast();
}
}