修复添加直播商品报错问题

master
paulGao 2022-09-20 19:07:59 +08:00
parent cddd94b9e5
commit 7d90846960
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ export const addLiveStoreGoods = (params) => {
// 店铺直播间添加
export const addLiveGoods = (params) => {
return putRequest(`/broadcast/studio/push/${params.roomId}/${params.liveGoodsId}`)
return putRequest(`/broadcast/studio/push/${params.roomId}/${params.liveGoodsId}`, {goodsId: params.goodsId})
}
// 获取拼团列表

View File

@ -438,6 +438,7 @@ export default {
addLiveGoods({
roomId: this.$route.query.roomId,
liveGoodsId: way.liveGoodsId,
goodsId: way.goodsId,
}).then((res) => {
if (res.success) {
this.liveData.push(way);