update user.js

This commit is contained in:
hupeng
2024-01-18 15:38:28 +08:00
parent 49d7079d6c
commit 19b7f068dd

View File

@ -199,10 +199,11 @@ export function getCollectUser(page, limit, type) {
/* /*
* 删除收藏产品 * 删除收藏产品
* */ * */
export function getCollectDel(id, category) { export function getCollectDel(id, category,type) {
return request.post('/collect/del', { return request.post('/collect/del', {
id: id, id: id,
category: category, category: category,
type: type
}) })
} }
@ -216,10 +217,11 @@ export function postCollectAll(data) {
/* /*
* 添加收藏产品 * 添加收藏产品
* */ * */
export function getCollectAdd(id, category) { export function getCollectAdd(id, category,type) {
return request.post('collect/add', { return request.post('collect/add', {
id: id, id: id,
category: category, category: category,
type: type
}) })
} }