From 92c625fb89a5acfad7ffbfd7de9c5b2baecf5b01 Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Wed, 27 May 2026 11:16:15 +0800 Subject: [PATCH] fix --- src/views/brand/index.vue | 19 ++++++++++++------- src/views/brandDetail/commodity-list.vue | 4 ++-- src/views/digitalDetail/index.vue | 9 +++++++-- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/brand/index.vue b/src/views/brand/index.vue index 4f50ba0..52e233a 100644 --- a/src/views/brand/index.vue +++ b/src/views/brand/index.vue @@ -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);