功能:完善 YumiNail 全栈修复与打包
This commit is contained in:
@@ -79,11 +79,11 @@ export const productApi = {
|
||||
},
|
||||
|
||||
likeProduct: async (productId: IdType): Promise<boolean> => {
|
||||
return await api.post<boolean>(`/product/like/${productId}`) as unknown as boolean
|
||||
return await api.post<boolean>(`/product-like/like/${productId}`) as unknown as boolean
|
||||
},
|
||||
|
||||
unlikeProduct: async (productId: IdType): Promise<boolean> => {
|
||||
return await api.post<boolean>(`/product/unlike/${productId}`) as unknown as boolean
|
||||
return await api.post<boolean>(`/product-like/unlike/${productId}`) as unknown as boolean
|
||||
},
|
||||
|
||||
searchProducts: async (keyword: string): Promise<ProductVO[]> => {
|
||||
|
||||
Reference in New Issue
Block a user