Commit 7a4eabd6 authored by Steven杜宇's avatar Steven杜宇

// 搜索

parent 9a5785db
......@@ -25,7 +25,7 @@ class YHSearchInfomationVC: YHBaseViewController {
[weak self] text in
guard let self = self else { return }
searchText(self.searchBar.textField.text ?? "")
if let searchText = self.searchBar.textField.text {
if let searchText = self.searchBar.textField.text, searchText.count > 0 {
self.saveSearchHistory(searchText)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment