refactor: 移除未使用的依赖并优化代码

- 移除 nuxt-swiper、tinymce 等相关未使用的依赖
- 优化频道关注接口的请求头配置
- 在频道操作中添加登录验证
- 修复样式类名中的语法错误
This commit is contained in:
wangqiao
2025-08-29 21:18:39 +08:00
parent 2c8eda876d
commit 8c265e3a21
5 changed files with 21 additions and 46 deletions

View File

@ -128,7 +128,12 @@ export const getChannelLunTanDetail = (params: { id: string }) => {
* 创建论坛关注
*/
export const createChannelFollow = (params: { channelId: string }) => {
return useDollarFetchRequest.post<IResponse<boolean>>('/prod-api/app-api/business/channel-follow/create', params)
return useDollarFetchRequest.post<IResponse<boolean>>(`/prod-api/app-api/business/channel-follow/create?channelId=${params.channelId}`, {}, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Accept': 'application/json'
},
})
}
/**