소스 검색

update search feature in product page

fengchang 2 년 전
부모
커밋
109deb0df1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      hichina-main-front/src/views/product/index.vue

+ 2 - 0
hichina-main-front/src/views/product/index.vue

@@ -100,6 +100,8 @@
 
   const search = debounce(value =>{
     console.log(value)
+    globalProductList.value=[]
+    currentPage.value = 1
     loadAllProducts()
   },500)