Sfoglia il codice sorgente

fix: indent创建询价.sku分类搜索.

peter 2 settimane fa
parent
commit
f201813310
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/pages/indent-manage/indent/components/skuSelect.vue

+ 2 - 2
src/pages/indent-manage/indent/components/skuSelect.vue

@@ -170,7 +170,7 @@ const selectSku = (item: any) => {
   close()
 }
 const clickNode = (obj: any) => {
-  currentCategory.value = obj.path
+  currentCategory.value = obj.name
 }
 const getCategory = () => {
   getCategoryTree().then((response: any) => {
@@ -202,7 +202,7 @@ const initAI = () => {
 const getSku = () => {
   loading.value = true
   index.value
-    .search(keywords.value, {
+    .search(currentCategory.value || keywords.value, {
       hitsPerPage: pageForm.value.limit,
       page: pageForm.value.page - 1,
     })