fix: 历史记录删除失败
This commit is contained in:
@ -180,7 +180,11 @@ class HistoryController extends GetxController {
|
|||||||
List<HisListItem> result =
|
List<HisListItem> result =
|
||||||
historyList.where((e) => e.checked!).toList();
|
historyList.where((e) => e.checked!).toList();
|
||||||
for (HisListItem i in result) {
|
for (HisListItem i in result) {
|
||||||
String resKid = 'archive_${i.kid}';
|
String str = 'archive';
|
||||||
|
try {
|
||||||
|
str = i.history!.business!;
|
||||||
|
} catch (_) {}
|
||||||
|
String resKid = '${str}_${i.kid}';
|
||||||
await UserHttp.delHistory(resKid);
|
await UserHttp.delHistory(resKid);
|
||||||
historyList.removeWhere((e) => e.kid == i.kid);
|
historyList.removeWhere((e) => e.kid == i.kid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user