可信代码库-AI修复建议接口地址修改

This commit is contained in:
付民康
2025-07-02 13:59:34 +08:00
parent 8ace12ba63
commit 8094a6598d

View File

@@ -268,14 +268,20 @@ export const getReleaseExport = (data): Promise<any> => {
// 获取AI修复建议
export function getVulSuggestion(data) {
return axios.request({
url: '/gateway/detect' + `/ai/vul_suggestion`,
return request({
url: `/ai/vul_suggestion`,
method: 'POST',
data,
headers: {
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
},
});
// return axios.request({
// url: '/gateway/detect' + `/ai/vul_suggestion`,
// method: 'POST',
// data,
// headers: {
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
// },
// });
}
// 许可证信息详情
export const getLicenseDetail = ({ id }): Promise<any> => {