Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 测试
yikaJasonMicaf64dd9f4ae8
diff --git a/src/api/platform.ts b/src/api/platform.tsindex 11c44af3..494b5822 100644--- a/src/api/platform.ts+++ b/src/api/platform.ts@@ -185,11 +185,11 @@ export const platformApi = {},// 获取热门专题列表getAllTopics(params: {- category?: any;- subCategory?: any;- startTime?: string;- endTime?: string;- topic?: string;+ category?: string; // 分类+ subCategory?: string; // 子分类+ startTime?: string; // 发布时间开始+ endTime?: string; // 发布时间结束+ topic?: string; // 话题标签}) {return http.get<Pagination<Topic>>(`/topics`, {isToken: false,diff --git a/src/views/trending/index.tsx b/src/views/trending/index.tsxindex ac78a50d..3236d5d2 100644--- a/src/views/trending/index.tsx+++ b/src/views/trending/index.tsx@@ -497,9 +497,9 @@ const Trending: React.FC = () => {try {// 获取所有热点事件- const hotTopicsData = await platformApi.getAllTopics(- {},- );+ const hotTopicsData = await platformApi.getAllTopics({+ category: '体娱',+ });console.log('------- sdasds', hotTopicsData);console.log(JSON.stringify(hotTopicsData));