瀏覽代碼

update search feature in product page

fengchang 1 年之前
父節點
當前提交
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)