diff --git a/admin/src/api/community.ts b/admin/src/api/community.ts index 93b5744..8f5cb43 100644 --- a/admin/src/api/community.ts +++ b/admin/src/api/community.ts @@ -30,6 +30,11 @@ export function communityPostSetRecommend(params: any) { return request.post({ url: '/community.communityPost/setRecommend', params }) } +// 帖子推荐流排序 +export function communityPostSetSort(params: any) { + return request.post({ url: '/community.communityPost/setSort', params }) +} + // 帖子设话题 export function communityPostSetTopic(params: any) { return request.post({ url: '/community.communityPost/setTopic', params }) diff --git a/admin/src/views/community/post/index.vue b/admin/src/views/community/post/index.vue index f2502a3..6f67885 100644 --- a/admin/src/views/community/post/index.vue +++ b/admin/src/views/community/post/index.vue @@ -103,6 +103,12 @@ :active-value="1" :inactive-value="0" @change="handleSetRecommend($event, row.id)" /> + + +