diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index d13a381..0882260 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -268,14 +268,20 @@ export const getReleaseExport = (data): Promise => { // 获取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 => {