Skip to content

Commit 4b7d669

Browse files
committed
feat: add backto top
1 parent 440ab03 commit 4b7d669

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/constants/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export const TABS_MAP = {
2121
name: '客户端测试',
2222
color: 'green',
2323
},
24+
dev: {
25+
name: '客户端测试',
26+
color: '#5BD8A6',
27+
},
2428
};
2529

2630
export type TabType = keyof typeof TABS_MAP;

src/service/topic.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export const queryTopicList = async (params: {
1818
},
1919
};
2020

21-
return request(`${BASE_URL}/api/v1/topics`, options);
21+
const res = await request(`${BASE_URL}/api/v1/topics`, options);
22+
res.data = res.data.filter((item: any) => item?.author?.loginname);
23+
return res;
2224
};
2325

2426
export const postTopic = async (data: {

0 commit comments

Comments
 (0)