We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b7d669 commit 12801f6Copy full SHA for 12801f6
src/constants/index.ts
@@ -23,7 +23,7 @@ export const TABS_MAP = {
23
},
24
dev: {
25
name: '客户端测试',
26
- color: '#5BD8A6',
+ color: 'green',
27
28
};
29
src/service/topic.ts
@@ -37,6 +37,20 @@ export const postTopic = async (data: {
37
return request(`${BASE_URL}/api/v1/topics`, options);
38
39
40
+export const postTopic = async (data: {
41
+ title: string;
42
+ tab: string;
43
+ content: string;
44
+ accesstoken: string;
45
+}) => {
46
+ const options: any = {
47
+ method: 'POST',
48
+ data,
49
+ };
50
+
51
+ return request(`${BASE_URL}/api/v1/topics`, options);
52
+};
53
54
export const queryTopicDetail = async (params: {
55
id: string;
56
mdrender?: boolean;
0 commit comments