финишный вариант интерцептора

This commit is contained in:
Veselov
2025-07-28 03:31:41 +03:00
parent 51137c6694
commit 91d05cfa86
3 changed files with 18 additions and 14 deletions

View File

@@ -1,8 +1,4 @@
import api from '~/api/instance'
export const getProductsDetail = (productId: number) =>
api.wc.v1ProductsDetail(productId)
.then(({ data }) => {
console.log('data', data)
return data
})
export const getProductsDetail = async (productId: number) =>
await api.wc.v1ProductsDetail(productId)