mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: del history from menu
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user