feat: 添加直播间推荐功能与视频上传优化

- 在 promotion.js 中新增 whetherStar 函数,用于更新直播间推荐状态。
- 在 goodsOperationSec.vue 中优化视频上传组件的样式与逻辑,增加视频删除功能。
- 在 live.vue 中集成 whetherStar 函数,优化直播间推荐状态切换逻辑。
This commit is contained in:
田香琪
2026-07-09 10:49:55 +08:00
parent fb2a9e7a9f
commit ecf11ae2d2
3 changed files with 67 additions and 26 deletions

View File

@@ -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)