fix: 删除单个搜索历史无效

This commit is contained in:
guozhigq
2024-03-10 16:13:11 +08:00
parent 06fb3e8d2f
commit b7b75e956f

View File

@ -115,7 +115,7 @@ class SSearchController extends GetxController {
onLongSelect(word) {
int index = historyList.indexOf(word);
historyList.value = historyList.removeAt(index);
historyList.removeAt(index);
historyList.refresh();
histiryWord.put('cacheList', historyList);
}