создаю телегу товаров
All checks were successful
Deploy / build (push) Successful in 45s

This commit is contained in:
alsaze
2025-10-03 19:26:39 +03:00
parent bb195777c3
commit 7a7d27c7ae
18 changed files with 87 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
import { useQuery } from '@tanstack/vue-query'
import { unref } from 'vue'
import { getProductAttributesDetail } from '~/api/endpoints/wp'
export const useGetProductAttributesDetail = (productId: MaybeRef<number>) => {
return useQuery({
queryKey: ['get-products-detail', productId],
queryFn: () => getProductAttributesDetail(unref(productId)),
})
}