финишный вариант интерцептора
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user