fix
This commit is contained in:
@@ -28,14 +28,19 @@ const searchHistory = ref([
|
||||
])
|
||||
|
||||
let changeSearchBrandTime = null
|
||||
|
||||
const changeSearchBrand = () => {
|
||||
merchantList.value = []
|
||||
if(!searchBrand.value)return
|
||||
clearTimeout(changeSearchBrandTime)
|
||||
getDesignerList({
|
||||
keyword: searchBrand.value,
|
||||
}).then((res)=>{
|
||||
merchantList.value.push(...res)
|
||||
})
|
||||
changeSearchBrandTime = setTimeout(()=>{
|
||||
merchantList.value = []
|
||||
getDesignerList({
|
||||
keyword: searchBrand.value,
|
||||
}).then((res)=>{
|
||||
merchantList.value.push(...res)
|
||||
})
|
||||
},500)
|
||||
|
||||
// changeSearchBrandTime = setTimeout(()=>{
|
||||
// getMerchantData.pageNum = 1
|
||||
// getMerchantData.isShowMark = false
|
||||
@@ -129,7 +134,7 @@ const {} = toRefs(data);
|
||||
<div class="content">
|
||||
<div class="input">
|
||||
<input type="text" v-model="searchBrand" @input="changeSearchBrand" :placeholder="$t('brand.search')">
|
||||
<div class="icon">
|
||||
<div class="icon" @click="changeSearchBrand">
|
||||
<SvgIcon name="brand-search" size="32" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user