update user.js
This commit is contained in:
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user