优化搜索
This commit is contained in:
parent
b64efac97f
commit
f6a0a69374
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<app-layout minHeight="unset" btnType="unset" title="分类">
|
||||
<view class="search-component">
|
||||
<widget-search @input="inputKeywords" />
|
||||
<widget-search v-model="keywords" @input="inputKeywords" />
|
||||
</view>
|
||||
<view class="cate">
|
||||
<app-cate
|
||||
|
@ -162,8 +162,7 @@ export default {
|
|||
/**
|
||||
* 搜索
|
||||
*/
|
||||
inputKeywords(kw) {
|
||||
this.keywords = kw;
|
||||
inputKeywords() {
|
||||
clearTimeout(this.keywordsTimer);
|
||||
this.keywordsTimer = setTimeout(async () => {
|
||||
this.data = [];
|
||||
|
|
Loading…
Reference in New Issue