fix: del history from menu

This commit is contained in:
bggRGjQaUbCoE
2024-10-06 17:21:18 +08:00
parent 158cf8a0cb
commit 1fd3d8ffe9

View File

@@ -123,7 +123,7 @@ class HistoryController extends GetxController {
} }
// 删除某条历史记录 // 删除某条历史记录
// Future delHistory(kid, business) async { Future delHistory(kid, business) async {
// String resKid = 'archive_$kid'; // String resKid = 'archive_$kid';
// if (business == 'live') { // if (business == 'live') {
// resKid = 'live_$kid'; // resKid = 'live_$kid';
@@ -136,7 +136,8 @@ class HistoryController extends GetxController {
// historyList.removeWhere((e) => e.kid == kid); // historyList.removeWhere((e) => e.kid == kid);
// SmartDialog.showToast(res['msg']); // SmartDialog.showToast(res['msg']);
// } // }
// } _onDelete(historyList.where((e) => e.kid == kid).toList());
}
// 删除已看历史记录 // 删除已看历史记录
void onDelHistory() { void onDelHistory() {