新增漏洞详情页
This commit is contained in:
@@ -1542,3 +1542,14 @@ export const getOriginalComment = (params: types.DiscussionCommentProps): Promis
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
// 获取漏洞数据
|
||||
export const getVulnDetail = (params: types.VulnDetailProps): Promise<any> => {
|
||||
return reqCatch(() =>
|
||||
request({
|
||||
url: `/api/v1/repo/vulnerability/info`,
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
@@ -207,3 +207,8 @@ export interface DiscussionCommentProps {
|
||||
discussionId: string | number,
|
||||
}
|
||||
|
||||
export interface VulnDetailProps {
|
||||
repoId: string,
|
||||
id: string,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user