refactor: 移除未使用的依赖并优化代码
- 移除 nuxt-swiper、tinymce 等相关未使用的依赖 - 优化频道关注接口的请求头配置 - 在频道操作中添加登录验证 - 修复样式类名中的语法错误
This commit is contained in:
@ -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'
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user