update user.js
This commit is contained in:
10
api/user.js
10
api/user.js
@ -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', {
|
||||
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', {
|
||||
id: id,
|
||||
category: category,
|
||||
category: category,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user