mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
feat: 添加直播间推荐功能与视频上传优化
- 在 promotion.js 中新增 whetherStar 函数,用于更新直播间推荐状态。 - 在 goodsOperationSec.vue 中优化视频上传组件的样式与逻辑,增加视频删除功能。 - 在 live.vue 中集成 whetherStar 函数,优化直播间推荐状态切换逻辑。
This commit is contained in:
@@ -6,6 +6,12 @@ import { getRequest, postRequest, postRequestWithNoForm, putRequest, deleteReque
|
||||
export const getLiveList = (params) => {
|
||||
return getRequest('/broadcast/studio', params)
|
||||
}
|
||||
|
||||
// 是否推荐直播间
|
||||
export const whetherStar = (params) => {
|
||||
return putRequest(`/broadcast/studio/recommend/${params.id}`, params)
|
||||
}
|
||||
|
||||
// 添加直播间
|
||||
export const addLive = (params) => {
|
||||
return postRequest('/broadcast/studio', params)
|
||||
|
||||
Reference in New Issue
Block a user