提交 0afbfaa9 编写于 作者: zhujiamin's avatar zhujiamin

debug搜索历史组件 清除功能完善 --fix1

上级 36e6dfa6
...@@ -190,6 +190,7 @@ export default class AppRoundList extends Vue{ ...@@ -190,6 +190,7 @@ export default class AppRoundList extends Vue{
* @memberof AppSearchHistory * @memberof AppSearchHistory
*/ */
public searchVal($event:any){ public searchVal($event:any){
if ($event.target) {
let val:any = $event.target.value; let val:any = $event.target.value;
val = val.trim(); val = val.trim();
if (val === "") { if (val === "") {
...@@ -216,6 +217,7 @@ export default class AppRoundList extends Vue{ ...@@ -216,6 +217,7 @@ export default class AppRoundList extends Vue{
localStorage.setItem('historyStorage', JSON.stringify(this.historyStorage)) localStorage.setItem('historyStorage', JSON.stringify(this.historyStorage))
} }
} }
}
/** /**
* 清除搜索历史 * 清除搜索历史
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册