|
@@ -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,
|
|
|
})
|