修复部分bug

This commit is contained in:
2022-07-07 20:32:59 +08:00
parent d3a7fd9913
commit 3637447ab6
22 changed files with 262 additions and 318 deletions
+22
View File
@@ -66,4 +66,26 @@ export const DelFavoriteProductApi = () => {
url: `/v1/mall/favorite/product`,
method: "delete",
})
}
/**
* 获取收藏夹商品详情
* @returns
*/
export const DetailFavoriteProductApi = () => {
return useRequest({
url: `/v1/mall/favorite`,
method: "get",
})
}
/**
* 移动收藏夹商品
* @returns
*/
export const MoveFavoriteProductApi = () => {
return useRequest({
url: `/v1/mall/favorite/product`,
method: "put",
})
}
+3 -2
View File
@@ -1,3 +1,4 @@
import { CAP_HTML_TO_IMAGE_BASE_URL } from "@/common/constant"
import { useRequest } from "@/use/useHttp"
/**
@@ -5,8 +6,8 @@ import { useRequest } from "@/use/useHttp"
*/
export const GetPayCode = () => {
return useRequest({
url: `/`,
base_url: 'http://192.168.1.127:8081/caphtml',
url: `/xima-caphtml/caphtml`,
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: "post",
})
}